From 99f62701a1f7b3d64ffc4dd3621c669d3a98f181 Mon Sep 17 00:00:00 2001 From: Giacomo Pope Date: Wed, 24 Jul 2024 16:54:14 +0100 Subject: [PATCH] fix wrong value in benchmark --- README.md | 20 ++++++++++---------- benchmarks/benchmark_ml_kem.py | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c3ab47c..a6219c5 100644 --- a/README.md +++ b/README.md @@ -101,11 +101,11 @@ The above example would also work with `ML_KEM_768` and `ML_KEM_1024`. #### Benchmarks -| Params | keygen | keygen/s | encap | encap/s | decap | decap/s | -|------------|---------:|-----------:|--------:|----------:|--------:|---------:| -|ML-KEM-512 | 3.98ms | 251.24 | 5.24ms | 190.85 | 6.70ms | 149.27 | -|ML-KEM-768 | 5.83ms | 171.57 | 7.32ms | 136.64 | 9.18ms | 108.97 | -|ML-KEM-1024 | 8.36ms | 119.64 | 10.24ms | 97.62 | 12.60ms | 79.37 | +| Params | keygen | keygen/s | encap | encap/s | decap | decap/s | +|------------|---------:|-----------:|--------:|----------:|--------:|--------:| +| ML-KEM-512 | 3.84ms | 260.47 | 4.99ms | 200.44 | 6.40ms | 156.15 | +| ML-KEM-768 | 5.67ms | 176.26 | 7.15ms | 139.84 | 8.99ms | 111.27 | +| ML-KEM-1024| 8.32ms | 120.15 | 10.10ms | 99.02 | 12.40ms | 80.66 | All times recorded using a Intel Core i7-9750H CPU and averaged over 1000 runs. @@ -143,11 +143,11 @@ currently only support $q = 3329$ and $n = 256$. #### Benchmarks -| Params | keygen | keygen/s | encap | encap/s | decap | decap/s | -|------------|---------:|-----------:|--------:|----------:|--------:|---------:| -|Kyber512 | 3.93ms | 254.26 | 4.50ms | 222.09 | 5.91ms | 169.14 | -|Kyber768 | 5.85ms | 170.87 | 6.48ms | 154.31 | 8.34ms | 119.97 | -|Kyber1024 | 8.35ms | 119.79 | 8.96ms | 111.61 | 11.27ms | 88.75 | +| Params | keygen | keygen/s | encap | encap/s | decap | decap/s | +|------------|---------:|-----------:|--------:|----------:|--------:|--------:| +| Kyber512 | 3.86ms | 258.85 | 4.43ms | 225.78 | 5.82ms | 171.72 | +| Kyber768 | 5.75ms | 173.96 | 6.38ms | 156.68 | 8.20ms | 121.93 | +| Kyber1024 | 8.26ms | 121.01 | 8.88ms | 112.60 | 11.15ms | 89.71 | All times recorded using a Intel Core i7-9750H CPU and averaged over 1000 runs. diff --git a/benchmarks/benchmark_ml_kem.py b/benchmarks/benchmark_ml_kem.py index 85867ae..8cdbc9b 100644 --- a/benchmarks/benchmark_ml_kem.py +++ b/benchmarks/benchmark_ml_kem.py @@ -60,7 +60,7 @@ def benchmark_ml_kem(ML_KEM, name, count): if __name__ == "__main__": - count = 10 + count = 1000 # common banner print("-" * 80) print(