- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for benchmarkMapAssignInt64 (0.16 sec)
-
src/runtime/map_test.go
for i := 0; i < b.N; i++ { if len(a) == 0 { b.StopTimer() for j := i; j < i+n; j++ { a[int32(j)] = j } b.StartTimer() } delete(a, int32(i)) } } func benchmarkMapAssignInt64(b *testing.B, n int) { a := make(map[int64]int) for i := 0; i < b.N; i++ { a[int64(i&(n-1))] = i } } func benchmarkMapOperatorAssignInt64(b *testing.B, n int) { a := make(map[int64]int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0)