use Value type in hmap benchmarks

master
magical 2022-01-23 05:39:34 +00:00
parent e4f0311afa
commit 0474ebd63d
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ func BenchmarkHmapGet_baseline(b *testing.B) {
}
func benchmarkHmapGet(b *testing.B, numElems int) {
h := make(map[int]int)
h := make(map[int]Value)
for i := range iter(numElems) {
h[i] = i
}
@ -160,7 +160,7 @@ func BenchmarkHmapSet_baseline(b *testing.B) {
}
func benchmarkHmapSet(b *testing.B, numElems int) {
h := make(map[int]int)
h := make(map[int]Value)
for i := range iter(numElems) {
h[i] = i
}