- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkIntMap (0.33 sec)
-
src/runtime/map_benchmark_test.go
for i := 0; i < 8; i++ { m[strings.Repeat("K", i+1)] = true } key := strings.Repeat("K", keySize) b.ResetTimer() for i := 0; i < b.N; i++ { _ = m[key] } } func BenchmarkIntMap(b *testing.B) { m := make(map[int]bool) for i := 0; i < 8; i++ { m[i] = true } b.ResetTimer() for i := 0; i < b.N; i++ { _, _ = m[7] } } func BenchmarkMapFirst(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 16:41:16 UTC 2023 - 10.6K bytes - Viewed (0)