Skip to content

Commit

Permalink
script is able to run perf tools and collect data
Browse files Browse the repository at this point in the history
in .markdown format on windows, unix (BSD), macos
and linux. It is perl variant of the run-perl.sh
(same tool implemented in bash). Unlike bash variant
this version requires tools to be compiled first.

There seems to be no easy way to run bash script
on windows. the perl seems to be better bet.
  • Loading branch information
Sashan committed Aug 21, 2024
1 parent f4660de commit fc0e673
Show file tree
Hide file tree
Showing 8 changed files with 912 additions and 9 deletions.
20 changes: 16 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ are contained.
To build:

export TARGET_OSSL_INCLUDE_PATH=/path/to/openssl/include
export TARGET_OSSL_LIBRARY_PATH=/path/to/openssl
export TARGET_OSSL_LIBRARY_PATH=/path/to/openssl/lib
make

The performance testing apps must be run ensuring that libcrypto.so and
libssl.so are on the library path.

For example:

LD_LIBRARY_PATH=/path/to/openssl ./randbytes 10
LD_LIBRARY_PATH=/path/to/openssl/lib ./randbytes 10

Each performance testing app will take different parameters. They are described
individually below. All performance testing apps take the "--terse" option
Expand Down Expand Up @@ -125,9 +125,21 @@ The pkeyread test repeatedly calls the PEM_read_bio_PrivateKey() function on a
memory BIO with a private key of desired type, when it is running in pem mode
(-f pem). If test is running in der mode (-f der) it calls to
d2i_PrivateKey_ex() function to repeatedly read private key of desired type.
It does 100000 repetitions divided evenly among each thread. The number of
It does 10000 repetitions divided evenly among each thread. The number of
threads to use is provided by option -t. The test reports average time per
call. Use option -k to select key type for benchmark. The list of keys for
testing is as follows: dh, dhx, dsa, ec, rsa, xkey. To run bencmark for all
testing is as follows: dh, dhx, dsa, ec, rsa, xkey. To run benchmark for all
keys and formats using 4 threads run pkeyread as follows:
./pkeyread -f all -k all -t 4

evp_setpeer
-------

The evp_setpeer test repeatedly calls the EVP_PKEY_derive_set_peer() function
on a memory BIO with a private key of desired type. It does 10000
repetitions divided evenly among each thread. The number of threads to use is
provided by option -t. The test reports average time per call. Use option -k
to select key type for benchmark. The list of keys for testing is as follows:
dh, ec256, ec521, x25519. To run benchmark for all keys using 4 threads, run
evp_setpeer as follows:
./evp_setpeer -k all -t 4
Loading

0 comments on commit fc0e673

Please sign in to comment.