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

Function BenchmarkKeyMgr_FilledState

keys_test.go:261–269  ·  view source on GitHub ↗

Benchmark state checks with a full key manager.

(b *testing.B)

Source from the content-addressed store, hash-verified

259
260// Benchmark state checks with a full key manager.
261func BenchmarkKeyMgr_FilledState(b *testing.B) {
262 mgr := NewKeyManager()
263 keyFillManager(mgr)
264
265 b.ResetTimer()
266 for n := 0; n < b.N; n++ {
267 checkKeyConfigOptimal(b, mgr)
268 }
269}
270
271// Benchmark update with a clean manager and state checks.
272func BenchmarkKeyMgr_CleanUpdate(b *testing.B) {

Callers

nothing calls this directly

Calls 3

NewKeyManagerFunction · 0.85
keyFillManagerFunction · 0.85
checkKeyConfigOptimalFunction · 0.85

Tested by

no test coverage detected