MCPcopy
hub / github.com/EngoEngine/engo / BenchmarkKeyMgr_FilledSubOptimal

Function BenchmarkKeyMgr_FilledSubOptimal

keys_test.go:315–323  ·  view source on GitHub ↗

Benchmark sub-optimal state checks on a filled key manager.

(b *testing.B)

Source from the content-addressed store, hash-verified

313
314// Benchmark sub-optimal state checks on a filled key manager.
315func BenchmarkKeyMgr_FilledSubOptimal(b *testing.B) {
316 mgr := NewKeyManager()
317 keyFillManager(mgr)
318
319 b.ResetTimer()
320 for n := 0; n < b.N; n++ {
321 checkKeyConfigSubOptimal(b, mgr)
322 }
323}
324
325// Utility function that fills the KeyManager with key states.
326func keyFillManager(mgr *KeyManager) {

Callers

nothing calls this directly

Calls 3

NewKeyManagerFunction · 0.85
keyFillManagerFunction · 0.85
checkKeyConfigSubOptimalFunction · 0.85

Tested by

no test coverage detected