MCPcopy Create free account
hub / github.com/EasyRPG/Player / BM_SwitchSet

Function BM_SwitchSet

bench/switches.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29BENCHMARK(BM_SwitchGet);
30
31static void BM_SwitchSet(benchmark::State& state) {
32 volatile int x = 0;
33 BM_SwitchOp(state, [&x](auto& s, auto id, bool val) { x = s.Set(id, val); });
34}
35
36BENCHMARK(BM_SwitchSet);
37

Callers

nothing calls this directly

Calls 2

BM_SwitchOpFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected