A map using a lock-free concurrency using left-right algo, written in Go

Add simple benchmark

authored by

Johannes Kohnen and committed by joh.dev 0bffc619 e25540bb

+7 -1
+7 -1
lrmap_test.go
··· 5 5 "testing" 6 6 ) 7 7 8 - func TestHundred(t *testing.T) { 8 + func TestHundred(t *testing.T) { testHundred(t) } 9 + func BenchmarkTestHundred(b *testing.B) { 10 + for i := 0; i < b.N; i++ { 11 + testHundred(b) 12 + } 13 + } 14 + func testHundred(t testing.TB) { 9 15 lrm := New[int, int]() 10 16 11 17 rh := lrm.NewReadHandler()