| 12 | const int fast_size = 1000000; |
| 13 | |
| 14 | class SortFixture : public virtual CppBenchmark::Fixture |
| 15 | { |
| 16 | protected: |
| 17 | std::vector<int> items; |
| 18 | |
| 19 | void Initialize(CppBenchmark::Context& context) override |
| 20 | { |
| 21 | items.resize(context.x()); |
| 22 | } |
| 23 | |
| 24 | void Cleanup(CppBenchmark::Context& context) override |
| 25 | { |
| 26 | items.clear(); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | class SelectionSort : public CppBenchmark::Benchmark, public SortFixture |
| 31 | { |
nothing calls this directly
no outgoing calls
no test coverage detected