Update keylock/speed_test.go
This commit is contained in:
parent
cd018e9f4a
commit
d77ae96464
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func BenchmarkKeyLock_NoBusyWait(b *testing.B) {
|
||||||
|
|
||||||
cancel := make(chan struct{})
|
cancel := make(chan struct{})
|
||||||
defer close(cancel)
|
defer close(cancel)
|
||||||
for i := 0; i < 10000; i++ {
|
for i := 0; i < 5000; i++ {
|
||||||
go func() {
|
go func() {
|
||||||
l.LockKeys(lockedKey, cancel)
|
l.LockKeys(lockedKey, cancel)
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in a new issue