criterion.rs
criterion.rs copied to clipboard
Doc / Book requests
I just discovered this create, and I benchmarking my brains out. It's great. Thanks so much.
I've found a few things I wish there were docs for (or I can't find them). I would do a PR. Here is my list:
-
I couldn't figure out how to add another benchmark to the came crate. It took some trial and error to figure out I needed to copy the entire
[[bench]]
section in theCargo.toml
to add a new entry. -
Along the same lines, I have no idea what the
harness = false
does in the[[bench]]
entry in theCargo.toml
file. I have no idea what other options are available here. It'd be nice to document that someplace. -
This might be a bug, but if it isn't this should be documented. When using the advanced configuration and creating a group from scratch the ORDER OF CALLS to the group matter. For example, if you call
measurment_time
after you callbench_function
the measurement time call is ignored and the default is used.
Thanks so much!
Hi @TwoClocks. PRs for all three points would be most welcome.