MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / vec

Function vec

bench/source/coroutine/incremental.cpp:813–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811BENCHMARK(deque);
812
813void vec(benchmark::State &state) {
814
815 std::vector<void *> data;
816
817 volatile int range = 20000;
818
819 for (auto _ : state) {
820
821 int lim = range;
822
823 for (int i = 0; i < lim; ++i) {
824 data.push_back(&data);
825 }
826
827 while (!data.empty()) {
828 data.pop_back();
829 }
830 }
831}
832
833BENCHMARK(vec);

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected