diff --git a/keylock/speed_test.go b/keylock/speed_test.go index 1c452e1..7483193 100644 --- a/keylock/speed_test.go +++ b/keylock/speed_test.go @@ -70,7 +70,7 @@ func BenchmarkKeyLock_NoBusyWait(b *testing.B) { cancel := make(chan struct{}) defer close(cancel) - for i := 0; i < 5000; i++ { + for i := 0; i < 1000; i++ { go func() { l.LockKeys(lockedKey, cancel) }()