bencher icon indicating copy to clipboard operation
bencher copied to clipboard

Export throughput from rust-criterion collector

Open Lol3rrr opened this issue 1 year ago • 3 comments

Currently it seems like you can only export the latency for rust criterion benchmarks. However I would also find it quite useful to track the overall throughput measured in the benchmarks. I understand that there might be some complications as criterions throughput measurements are opt-in, but it still seems like a nice feature to have.

If this is not too big/difficult I would have no problem with implementing this myself as well

Lol3rrr avatar Apr 22 '24 12:04 Lol3rrr

Hey @Lol3rrr, I'm definitely open to a PR to add this functionality: https://bheisler.github.io/criterion.rs/book/user_guide/advanced_configuration.html#throughput-measurements

It shouldn't be too hard to add. It will require having up to two Measures for the adapter, so it can also parse thrpt: [164.95 MiB/s 166.14 MiB/s 167.10 MiB/s] etc.

epompeii avatar Apr 22 '24 22:04 epompeii