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

Function BM_SwitchFlip

bench/switches.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36BENCHMARK(BM_SwitchSet);
37
38static void BM_SwitchFlip(benchmark::State& state) {
39 volatile int x = 0;
40 BM_SwitchOp(state, [&x](auto& s, auto id, bool) { x = s.Flip(id); });
41}
42
43BENCHMARK(BM_SwitchFlip);
44

Callers

nothing calls this directly

Calls 2

BM_SwitchOpFunction · 0.85
FlipMethod · 0.45

Tested by

no test coverage detected