forked from pq-code-package/mlkem-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from potsrevennil/dev
Dev
- Loading branch information
Showing
3 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env python3 | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import json | ||
from enum import IntEnum | ||
|
||
output = "output.json" | ||
|
||
|
||
class SCHEME(IntEnum): | ||
MLKEM512 = 1 | ||
MLKEM768 = 2 | ||
MLKEM1024 = 3 | ||
|
||
def __str__(self): | ||
match self: | ||
case SCHEME.MLKEM512: | ||
return "ML-KEM-512" | ||
case SCHEME.MLKEM768: | ||
return "ML-KEM-768" | ||
case SCHEME.MLKEM1024: | ||
return "ML-KEM-1024" | ||
|
||
|
||
with open(output, "w") as f: | ||
v = [] | ||
for scheme in SCHEME: | ||
for primitive in ["keypair", "encaps", "decaps"]: | ||
v.append( | ||
{ | ||
"name": f"{str(scheme)} {primitive}", | ||
"unit": "cycles", | ||
"value": 1234567, | ||
} | ||
) | ||
|
||
f.write(json.dumps(v)) |
81ed54f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'test'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.03
.ML-KEM-512 keypair
1234567
cycles12345
cycles100.01
ML-KEM-512 encaps
1234567
cycles12345
cycles100.01
ML-KEM-512 decaps
1234567
cycles12345
cycles100.01
ML-KEM-768 keypair
1234567
cycles12345
cycles100.01
ML-KEM-768 encaps
1234567
cycles12345
cycles100.01
ML-KEM-768 decaps
1234567
cycles12345
cycles100.01
ML-KEM-1024 keypair
1234567
cycles12345
cycles100.01
ML-KEM-1024 encaps
1234567
cycles12345
cycles100.01
ML-KEM-1024 decaps
1234567
cycles12345
cycles100.01
This comment was automatically generated by workflow using github-action-benchmark.