func BenchmarkGoRemove(b *testing.B) { c := cow.New(m) for i := 0; i < b.N; i++ { go c.Remove("x") c.Remove("x") } }
func BenchmarkGoUpdate(b *testing.B) { c := cow.New(m) for i := 0; i < b.N; i++ { go c.Update(m) c.Update(m) } }
func BenchmarkGoInsert(b *testing.B) { c := cow.New(m) for i := 0; i < b.N; i++ { go c.Insert("a", "a") c.Insert("a", "a") } }
func BenchmarkGoRead(b *testing.B) { c := cow.New(m) for i := 0; i < b.N; i++ { go c.Get("a") c.Get("a") } }
func BenchmarkReset(b *testing.B) { c := cow.New(m) for i := 0; i < b.N; i++ { c.Reset(nil) c.Insert("a", "a") } }
func BenchmarkNew(b *testing.B) { for i := 0; i < b.N; i++ { _ = cow.New(nil) } }