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

Function BenchmarkKeyMgr_CleanUpdate

keys_test.go:272–280  ·  view source on GitHub ↗

Benchmark update with a clean manager and state checks.

(b *testing.B)

Source from the content-addressed store, hash-verified

270
271// Benchmark update with a clean manager and state checks.
272func BenchmarkKeyMgr_CleanUpdate(b *testing.B) {
273 mgr := NewKeyManager()
274
275 b.ResetTimer()
276 for n := 0; n < b.N; n++ {
277 mgr.update()
278 checkKeyConfigOptimal(b, mgr)
279 }
280}
281
282// Benchmark update with a full key manager and state checks.
283func BenchmarkKeyMgr_FilledUpdate(b *testing.B) {

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
NewKeyManagerFunction · 0.85
checkKeyConfigOptimalFunction · 0.85

Tested by

no test coverage detected