From d77ae964642c67f916377d83d80d4471bad6d667 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Fri, 18 Mar 2022 20:06:50 +0000 Subject: [PATCH] Update keylock/speed_test.go --- keylock/speed_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keylock/speed_test.go b/keylock/speed_test.go index 42a44ac..1c452e1 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 < 10000; i++ { + for i := 0; i < 5000; i++ { go func() { l.LockKeys(lockedKey, cancel) }()