CppBenchmark icon indicating copy to clipboard operation
CppBenchmark copied to clipboard

The sort example kinda does not make sense

Open TheMates opened this issue 3 years ago • 1 comments

I am browsing the examples and putting things together, and noticed, that the sort example does not really make sense.

Each sort class inheriting from the SortFixture calls Initialize at the beginning of an attempt, which populates the items, but then in each Run called during an attempt, the items are not changed. So the first Run sorts the items and then every subsequent run has the items already sorted.

TheMates avatar Aug 23 '22 12:08 TheMates

Thanks for pointing on it! Fixed

chronoxor avatar Aug 23 '22 12:08 chronoxor