kindelia / Kindelia

An efficient, secure cryptocomputer
https://kindelia.org/
606 stars 39 forks source link

Performance metrics tracking #123

Open steinerkelvin opened 2 years ago

steinerkelvin commented 2 years ago

https://github.com/marketplace/actions/continuous-benchmark

https://doc.rust-lang.org/cargo/commands/cargo-bench.html

https://crates.io/crates/criterion

racs4 commented 2 years ago

Maybe this isn't possible. The [bench] attribute is unstable, and the criterion only works for library crates as said here. Other libraries suffer from the same problem of criterion, because needs to work in a file outside the src (it needs to be inside benches directory).

steinerkelvin commented 2 years ago

Do you think it's possible and useful for us to export some functions in a lib.rs (we would do it sometime anyway) and use criterion independently of cargo bench / [bench] attr?

Then we could write our own... Well, actually, I just found this.

Also, critcmp seems useful.

racs4 commented 2 years ago

It's the only way to use these benches libs from what i saw