diff --git a/keylock/speed_test.go b/keylock/speed_test.go index 5a3daf0..783e200 100644 --- a/keylock/speed_test.go +++ b/keylock/speed_test.go @@ -14,6 +14,7 @@ func BenchmarkMutex_Baseline(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { mu.Lock() + _ = 0 mu.Unlock() } })