Skip to content

Commit 3b8b25e

Browse files
committed
call keys, values in LinHash bench
Signed-off-by: Tim Henderson <[email protected]>
1 parent c98e9d0 commit 3b8b25e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hashtable.test

2.77 MB
Binary file not shown.

hashtable/hashtable_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,10 @@ func BenchmarkMLHashBetter(b *testing.B) {
301301
t.Put(r.key, r.value)
302302
}
303303
for _, _, next := t.Iterate()(); next != nil; _, _, next = next() {}
304-
for _, _, next := t.Iterate()(); next != nil; _, _, next = next() {}
305-
for _, _, next := t.Iterate()(); next != nil; _, _, next = next() {}
304+
for _, next := t.Keys()(); next != nil; _, next = next() {}
305+
for _, next := t.Values()(); next != nil; _, next = next() {}
306+
for _, next := t.Values()(); next != nil; _, next = next() {}
307+
for _, next := t.Values()(); next != nil; _, next = next() {}
306308
for _, r := range records {
307309
t.Remove(r.key)
308310
}

0 commit comments

Comments
 (0)