- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkHashStringSpeed (0.41 sec)
-
src/runtime/map_benchmark_test.go
// license that can be found in the LICENSE file. package runtime_test import ( "fmt" "math/rand" "strconv" "strings" "testing" ) const size = 10 func BenchmarkHashStringSpeed(b *testing.B) { strings := make([]string, size) for i := 0; i < size; i++ { strings[i] = fmt.Sprintf("string#%d", i) } sum := 0 m := make(map[string]int, size) for i := 0; i < size; 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)