pq-code-package / mlkem-native

High-assurance, high-performance ML-KEM implementation for mobile, pc, and server targets
https://pq-code-package.github.io/mlkem-native/dev/bench/
Apache License 2.0
11 stars 9 forks source link

Benchmark output difficult to read #413

Closed hanno-becker closed 3 days ago

hanno-becker commented 6 days ago

The benchmark script currently produces output that is difficult to read

 tests bench --opt=OPT --cycles=PERF -r
INFO  > Benchmark          Compile     (native,    opt) make CROSS_PREFIX= bench CYCLES=PERF AUTO=1 OPT=1
INFO  > root                                     Running <built-in function bin> as root -- you may need to enter your root password.
INFO  > Benchmark          ML-KEM-512  (native,    opt)    keypair cycles = 22463
    encaps cycles = 29165
    decaps cycles = 38154

This should be improved -- at the least, the keypair cycles should be on a newline.