peter-bertok / float_fast_print

Fast float-to-string conversion based on the Ryū algorithm by Ulf Adams.
Apache License 2.0
30 stars 2 forks source link

How do you run benchmarks ? #1

Open StyMaar opened 6 years ago

StyMaar commented 6 years ago

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 …

dtolnay commented 6 years ago

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.

llogiq commented 6 years ago

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