Kindelia icon indicating copy to clipboard operation
Kindelia copied to clipboard

Performance metrics tracking

Open steinerkelvin opened this issue 3 years ago • 3 comments

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

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

https://crates.io/crates/criterion

steinerkelvin avatar Aug 25 '22 18:08 steinerkelvin

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).

racs4 avatar Aug 29 '22 20:08 racs4

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.

steinerkelvin avatar Aug 29 '22 21:08 steinerkelvin

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

racs4 avatar Aug 30 '22 12:08 racs4