pq-code-package/mlkem-c-aarch64

Add benchmarking code

Closed this issue · 4 comments

I'd like to have benchmarking code here for at least the following 3 cases

https://github.com/slothy-optimizer/pqax has all that and is licensed under MIT which means we can take some of that code.

Am I missing something?

At some point it would be nice to have automatic benchmarking on a number of platforms at some point.

Good idea. Github Action supports Apple M series just recently. Other CPUs are run under QEMU.
Other than Apple M series, Circle CI and Github Action don't specify the actual CPU, my quick 5-min search show the options are: armv7 or aarch64.

I would vote for the Apple counter, and PERF for other ARM CPUs so it's can be as generic as possible.

I doubt that we can benchmark on the Github runners. But we can host our own runners eventually.

I wasn't aware of the M1-based runners. Testing on those would be nice. It looks like they are not free to run, right? Maybe we keep that in mind, but first having qemu-based testing is sufficient I think.

Let's separate the issue of provisioning the benchmarking code from provisioning benchmarking automation / CI.

Completed in #81