From 0474ebd63d942227ffcbc68cf674796e0300aeb9 Mon Sep 17 00:00:00 2001 From: magical Date: Sun, 23 Jan 2022 05:39:34 +0000 Subject: [PATCH] use Value type in hmap benchmarks --- pmap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmap_test.go b/pmap_test.go index 7e98cde..c494319 100644 --- a/pmap_test.go +++ b/pmap_test.go @@ -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 }