float_fast_print icon indicating copy to clipboard operation
float_fast_print copied to clipboard

How do you run benchmarks ?

Open StyMaar opened this issue 7 years ago • 2 comments

I wanted to add a comparison to the orginial C implementation thanks to this wrapper crate, but I don't know how to run the benchmarks …

StyMaar avatar Jul 31 '18 12:07 StyMaar

The benchmarks.rs file is in the wrong place -- it will need to be moved out of the tests directory into a new benches directory. Then it will be picked up by a plain cargo bench.

I posted by own benchmark in https://github.com/m-ou-se/ryu-rust/issues/1#issuecomment-409279110.

dtolnay avatar Jul 31 '18 16:07 dtolnay

I've moved the benchmarks to `benches/* in #3 and may change the benchmarks to use criterion-rs (to allow running on stable and get more stable results).

llogiq avatar Aug 01 '18 10:08 llogiq