nvzqz / divan

Fast and simple benchmarking for Rust projects
https://nikolaivazquez.com/blog/divan/
Apache License 2.0
924 stars 26 forks source link

Reintroduce counter to search example benchmarks #27

Closed nvzqz closed 11 months ago

nvzqz commented 11 months ago

Change 1713c6b (#24) removed the use of the ItemsCount counter because the resulting numbers didn't make much sense. So it was unreasonable to use the haystack size.

Every benchmark iteration searches for a single element, so it appears that the correct count to use is 1. The new throughput numbers now make more sense with this change.

Results: