diff --git a/src/AsyncKeyLock.Benchmarks/BenchmarkSimpleKeyLock.cs b/src/AsyncKeyLock.Benchmarks/BenchmarkSimpleKeyLock.cs index 0ed1abd..2d00dc4 100644 --- a/src/AsyncKeyLock.Benchmarks/BenchmarkSimpleKeyLock.cs +++ b/src/AsyncKeyLock.Benchmarks/BenchmarkSimpleKeyLock.cs @@ -1,5 +1,4 @@ using BenchmarkDotNet.Attributes; -using BenchmarkDotNet.Jobs; namespace AsyncKeyLock.Benchmarks; @@ -10,7 +9,10 @@ public class BenchmarkSimpleKeyLock public void GlobalSetup() { _AsyncKeyLock = new AsyncLock(); - _AsyncKeyedLock = new AsyncKeyedLock.AsyncKeyedLocker(); + _AsyncKeyedLock = new AsyncKeyedLock.AsyncKeyedLocker(o => + { + o.PoolSize = NumberOfLocks; + }); _ImageSharpWebLock = new SixLabors.ImageSharp.Web.Synchronization.AsyncKeyLock(); }