benchmark: also report the inverse of the performance (ops/s)#8
Conversation
|
While we're changing this, maybe we could use something like Probably worth rounding to an integer for the ops / s, do you agree? |
|
that's literally the second thing I wanted to propose 😁 but I was thinking of doing a transpose of it: (i.e. something that |
|
Yeah this seems good. The current output was something I wrote in 3 minutes to just check what's happening! I also thing average time is one metric, but minimum / maximum times is maybe interesting too. |
|
aah, right, openssl does report per operation time and inverse of it; will change this code to do the same min and max of timings is a bit too much: properly benchmarking python code is a whole 'nother kettle of fish... |
|
haha yeah, hence the conservative README: |
|
Updated to output something like this: |
|
I would swap I would also report time in ms rather than seconds so something like: |
Signed-off-by: Hubert Kario <hkario@redhat.com>
|
I've used "group" as that's the name in use in TLS: "key exchange group", to encompass both the FFDH prime, ECDH curve, and now PQC parameters. Changed to params |
|
Cool. Looks good to me. I'll update the benchmark in the README tonight |
Report the performance in operations per second too, like so: