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

Function BM_SwitchGet

bench/switches.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static void BM_SwitchGet(benchmark::State& state) {
25 volatile int x = 0;
26 BM_SwitchOp(state, [&x](auto& s, auto id, bool) { s.Get(id); });
27}
28
29BENCHMARK(BM_SwitchGet);
30

Callers

nothing calls this directly

Calls 2

BM_SwitchOpFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected