MCPcopy
hub / github.com/gofiber/fiber / BenchmarkState_Delete

Function BenchmarkState_Delete

state_test.go:984–992  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

982}
983
984func BenchmarkState_Delete(b *testing.B) {
985 b.ReportAllocs()
986
987 for b.Loop() {
988 st := newState()
989 st.Set("a", 1)
990 st.Delete("a")
991 }
992}
993
994func BenchmarkState_Reset(b *testing.B) {
995 b.ReportAllocs()

Callers

nothing calls this directly

Calls 3

newStateFunction · 0.85
SetMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected