- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkMegEmptyMap (0.37 sec)
-
src/runtime/map_benchmark_test.go
key1 := strings.Repeat("X", 1<<20) key2 := strings.Repeat("X", 1<<20) // equal but different instance m[key1] = true b.ResetTimer() for i := 0; i < b.N; i++ { _, _ = m[key2] } } func BenchmarkMegEmptyMap(b *testing.B) { m := make(map[string]bool) key := strings.Repeat("X", 1<<20) b.ResetTimer() for i := 0; i < b.N; i++ { _, _ = m[key] } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 16:41:16 UTC 2023 - 10.6K bytes - Viewed (0)