(b *testing.B)
| 982 | } |
| 983 | |
| 984 | func 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 | |
| 994 | func BenchmarkState_Reset(b *testing.B) { |
| 995 | b.ReportAllocs() |