MCPcopy Create free account
hub / github.com/chronoxor/CppBenchmark / SortFixture

Class SortFixture

examples/sort.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12const int fast_size = 1000000;
13
14class SortFixture : public virtual CppBenchmark::Fixture
15{
16protected:
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
30class SelectionSort : public CppBenchmark::Benchmark, public SortFixture
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected