Skip to content

Commit

Permalink
fix wrong value in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoPope committed Jul 24, 2024
1 parent a469278 commit 99f6270
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/benchmark_ml_kem.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def benchmark_ml_kem(ML_KEM, name, count):


if __name__ == "__main__":
count = 10
count = 1000
# common banner
print("-" * 80)
print(
Expand Down

0 comments on commit 99f6270

Please sign in to comment.