mmaker / zkalc

A web tool that helps you compare and visualize the performance of cryptographic operations
https://zka.lc
BSD 3-Clause "New" or "Revised" License
76 stars 12 forks source link

How to run the actual bencharks? #7

Closed KaiserKarel closed 11 months ago

KaiserKarel commented 1 year ago

I'm looking for the script that invokes the actual benchmarks to evaluate the compiler options used.

asn-d6 commented 1 year ago

Hello,

we tried to document this in https://zka.lc/about but perhaps we didn't do a really good job because it gets lost in the noise.

Anyhow, you run the benchmarks by doing make in the backend/ directory. You can see the Makefile to learn the actual commands being run (basically cargo criterion).

KaiserKarel commented 1 year ago

Gotcha. It might be interesting to run these benchmarks with LTO=1 and target-cpu=native.

mmaker commented 1 year ago

Hey @KaiserKarel ! I'm not sure this would be really useful.. I'd expect end-user libraries to enable parallelism and asm backends, but do they also ship with cpu-native and optimized lto? If you think they do, would you like to make a pull request for it? Creating a.cargo folder similarly to what I did here would probably do the job! https://github.com/arkworks-rs/gemini/tree/main/.cargo