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

Function BM_VariableSet

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

Source from the content-addressed store, hash-verified

29BENCHMARK(BM_VariableGet);
30
31static void BM_VariableSet(benchmark::State& state) {
32 volatile int x = 0;
33 BM_VariableOp(state, [&x](auto& v, auto id, auto val) { x = v.Set(id, val); });
34}
35
36BENCHMARK(BM_VariableSet);
37

Callers

nothing calls this directly

Calls 2

BM_VariableOpFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected