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

Method Run

examples/sort.cpp:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368protected:
369 void Run(CppBenchmark::Context& context) override
370 {
371 // Generate items to sort
372 std::generate(items.begin(), items.end(), rand);
373
374 // Sort items
375 if (items.size() > 0)
376 QuickSort3Internal(items, 1, items.size());
377 context.metrics().AddItems(items.size());
378 }
379
380private:
381 static void QuickSort3Internal(std::vector<int>& subitems, size_t left, size_t right)

Callers

nothing calls this directly

Calls 1

AddItemsMethod · 0.80

Tested by

no test coverage detected