Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update speed.cc to use the same jitter function as rand.c (#2100)
### Description of changes: AWS-LC uses `jent_read_entropy` which should be reflected in the benchmark. Also turn on Jitter as the entropy source so the CI actually builds/runs this code path and ensures it continues to work. ### Call-outs: This doesn't affect the performance results, before: ``` ./tool/bssl speed -filter Jitter Did 253 Jitter (16 bytes) operations in 1081577us (233.9 ops/sec): 0.0 MB/s Did 30 Jitter (256 bytes) operations in 1021729us (29.4 ops/sec): 0.0 MB/s Did 6 Jitter (1350 bytes) operations in 1097450us (5.5 ops/sec): 0.0 MB/s Did 1 Jitter (8192 bytes) operations in 1087014us (0.9 ops/sec): 0.0 MB/s Did 1 Jitter (16384 bytes) operations in 2187891us (0.5 ops/sec): 0.0 MB/s ``` After: ``` ./tool/bssl speed -filter Jitter Did 230 Jitter (16 bytes) operations in 1013691us (226.9 ops/sec): 0.0 MB/s Did 30 Jitter (256 bytes) operations in 1034730us (29.0 ops/sec): 0.0 MB/s Did 6 Jitter (1350 bytes) operations in 1114960us (5.4 ops/sec): 0.0 MB/s Did 1 Jitter (8192 bytes) operations in 1095828us (0.9 ops/sec): 0.0 MB/s Did 1 Jitter (16384 bytes) operations in 2198877us (0.5 ops/sec): 0.0 MB/s ``` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
- Loading branch information