MCPcopy Index your code
hub / github.com/EngoEngine/engo / BenchmarkKeyMgr_FilledUpdate

Function BenchmarkKeyMgr_FilledUpdate

keys_test.go:283–292  ·  view source on GitHub ↗

Benchmark update with a full key manager and state checks.

(b *testing.B)

Source from the content-addressed store, hash-verified

281
282// Benchmark update with a full key manager and state checks.
283func BenchmarkKeyMgr_FilledUpdate(b *testing.B) {
284 mgr := NewKeyManager()
285 keyFillManager(mgr)
286
287 b.ResetTimer()
288 for n := 0; n < b.N; n++ {
289 mgr.update()
290 checkKeyConfigOptimal(b, mgr)
291 }
292}
293
294// Slow way to check key state, checks and store them externaly.
295func checkKeyConfigSubOptimal(b *testing.B, mgr *KeyManager) {

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
NewKeyManagerFunction · 0.85
keyFillManagerFunction · 0.85
checkKeyConfigOptimalFunction · 0.85

Tested by

no test coverage detected