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

Function BenchmarkKeyMgr_CleanState

keys_test.go:251–258  ·  view source on GitHub ↗

Benchmark state checks with a clean manager.

(b *testing.B)

Source from the content-addressed store, hash-verified

249
250// Benchmark state checks with a clean manager.
251func BenchmarkKeyMgr_CleanState(b *testing.B) {
252 mgr := NewKeyManager()
253
254 b.ResetTimer()
255 for n := 0; n < b.N; n++ {
256 checkKeyConfigOptimal(b, mgr)
257 }
258}
259
260// Benchmark state checks with a full key manager.
261func BenchmarkKeyMgr_FilledState(b *testing.B) {

Callers

nothing calls this directly

Calls 2

NewKeyManagerFunction · 0.85
checkKeyConfigOptimalFunction · 0.85

Tested by

no test coverage detected