Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
static 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
29
BENCHMARK(BM_SwitchGet);
30
Callers
nothing calls this directly
Calls
2
BM_SwitchOp
Function · 0.85
Get
Method · 0.45
Tested by
no test coverage detected