Merge pull request #5871 from gojimmypi/BenchmarkEnhancements

Benchmark Enhancements and Code Cleanup
This commit is contained in:
David Garske
2022-12-22 17:18:47 -08:00
committed by GitHub
2 changed files with 938 additions and 378 deletions

View File

@ -7,6 +7,19 @@ Tool for performing cryptographic algorithm benchmarking.
* Symmetric algorithms like AES and ChaCha20 are measured in Killobytes (KB) or Megabytes (MB) per second. * Symmetric algorithms like AES and ChaCha20 are measured in Killobytes (KB) or Megabytes (MB) per second.
* Asymmetric algorithms like RSA and ECC are measured using Operations Per Second (Ops) per second. * Asymmetric algorithms like RSA and ECC are measured using Operations Per Second (Ops) per second.
## Compile Options
Compile with the following options for fixed units. Otherwise the units will auto-scale. See `-base10` parameter option, below.
`-DWOLFSSL_BENCHMARK_FIXED_UNITS_GB` for GB/GiB
`-DWOLFSSL_BENCHMARK_FIXED_UNITS_MB` for MB/MiB
`-DWOLFSSL_BENCHMARK_FIXED_UNITS_KB` for KB/KiB
`-DWOLFSSL_BENCHMARK_FIXED_UNITS_B` for Bytes
To set the output to always be CSV:
`-DWOLFSSL_BENCHMARK_FIXED_CSV`
## Usage ## Usage
```sh ```sh

File diff suppressed because it is too large Load Diff