- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkHashBytesSpeed (0.2 sec)
-
src/runtime/map_benchmark_test.go
m[strings[i]] = 0 } idx := 0 b.ResetTimer() for i := 0; i < b.N; i++ { sum += m[strings[idx]] idx++ if idx == size { idx = 0 } } } type chunk [17]byte func BenchmarkHashBytesSpeed(b *testing.B) { // a bunch of chunks, each with a different alignment mod 16 var chunks [size]chunk // initialize each to a different value for i := 0; i < size; i++ { chunks[i][0] = byte(i) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 16:41:16 UTC 2023 - 10.6K bytes - Viewed (0)