Commit 152d9b9
committed
Add ssl + hashlib benchmark
```
$ python3 --version && uname -a
Python 3.10.12
Linux ip-172-31-89-138 6.2.0-1014-aws python#14~22.04.1-Ubuntu SMP Thu Oct 5 22:43:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ echo AWS-LC PYTHON; echo; ./python bench/benchmarks.py; echo; echo SYSTEM PYTHON; echo; python3 bench/benchmarks.py
AWS-LC PYTHON
ALGO SIZE (B) TIME (s)
==== ======== ========
TLS 0 0.000771021842956543
TLS 1024 0.0007800400257110595
TLS 1048576 0.0026435813903808595
md5 8 1.9125938415527344e-06
md5 1024 3.813743591308594e-06
md5 1048576 0.0019908883571624755
sha1 8 1.8870830535888672e-06
sha1 1024 3.3450126647949217e-06
sha1 1048576 0.001439645290374756
sha256 8 1.9631385803222656e-06
sha256 1024 5.374908447265625e-06
sha256 1048576 0.0034945359230041505
sha384 8 2.081632614135742e-06
sha384 1024 4.610776901245117e-06
sha384 1048576 0.002470192193984985
sha512 8 2.0771026611328124e-06
sha512 1024 4.634857177734375e-06
sha512 1048576 0.002472785234451294
sha3_256 8 2.4628639221191406e-06
sha3_256 1024 6.587982177734375e-06
sha3_256 1048576 0.0045334467887878415
sha3_384 8 2.4132728576660156e-06
sha3_384 1024 7.719039916992187e-06
sha3_384 1048576 0.005894896745681763
sha3_512 8 2.4335384368896486e-06
sha3_512 1024 1.061868667602539e-05
sha3_512 1048576 0.008451510906219482
SYSTEM PYTHON
ALGO SIZE (B) TIME (s)
==== ======== ========
TLS 0 0.0019146842956542969
TLS 1024 0.0019197502136230468
TLS 1048576 0.00295937442779541
md5 8 1.884937286376953e-06
md5 1024 3.789663314819336e-06
md5 1048576 0.00199932861328125
sha1 8 1.8317699432373046e-06
sha1 1024 3.321409225463867e-06
sha1 1048576 0.0014382312297821045
sha256 8 2.0177364349365232e-06
sha256 1024 5.11932373046875e-06
sha256 1048576 0.003096806049346924
sha384 8 2.1207332611083983e-06
sha384 1024 4.274129867553711e-06
sha384 1048576 0.0020926313400268554
sha512 8 2.153873443603516e-06
sha512 1024 4.2979717254638674e-06
sha512 1048576 0.0020925924777984617
sha3_256 8 2.3796558380126953e-06
sha3_256 1024 5.854606628417969e-06
sha3_256 1048576 0.003778960466384888
sha3_384 8 2.38037109375e-06
sha3_384 1024 6.821155548095703e-06
sha3_384 1048576 0.004898728609085083
sha3_512 8 2.3713111877441406e-06
sha3_512 1024 9.174823760986328e-06
sha3_512 1048576 0.007007023334503174
```1 parent 86915ff commit 152d9b9
8 files changed
Lines changed: 122 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments