Skip to content

Commit 6f9ca6c

Browse files
authored
Merge pull request #9294 from LinuxJedi/benchmark-ram
Benchmark memory tracking
2 parents 0eb7ad0 + 00c936c commit 6f9ca6c

3 files changed

Lines changed: 813 additions & 34 deletions

File tree

wolfcrypt/benchmark/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Tool for performing cryptographic algorithm benchmarking.
66

77
* Symmetric algorithms like AES and ChaCha20 are measured in Killobytes (KB) or Megabytes (MB) per second.
88
* Asymmetric algorithms like RSA and ECC are measured using Operations Per Second (Ops) per second.
9+
* When built with `--enable-memory --enable-trackmemory=verbose --enable-stacksize=verbose`, each result also reports peak heap bytes/allocations and peak stack bytes consumed during the timed run.
910

1011
## Compile Options
1112

@@ -20,6 +21,12 @@ To set the output to always be CSV:
2021

2122
`-DWOLFSSL_BENCHMARK_FIXED_CSV`
2223

24+
To track per-algorithm heap and stack usage in the output, configure wolfSSL with:
25+
26+
```
27+
./configure --enable-memory --enable-trackmemory=verbose --enable-stacksize=verbose
28+
```
29+
2330
## Usage
2431

2532
```sh

0 commit comments

Comments
 (0)