We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff513bc commit 1dd0b2bCopy full SHA for 1dd0b2b
1 file changed
src/AsyncKeyLock.Benchmarks/BenchmarkSimpleKeyLock.cs
@@ -1,5 +1,4 @@
1
using BenchmarkDotNet.Attributes;
2
-using BenchmarkDotNet.Jobs;
3
4
namespace AsyncKeyLock.Benchmarks;
5
@@ -10,7 +9,10 @@ public class BenchmarkSimpleKeyLock
10
9
public void GlobalSetup()
11
{
12
_AsyncKeyLock = new AsyncLock<string>();
13
- _AsyncKeyedLock = new AsyncKeyedLock.AsyncKeyedLocker<string>();
+ _AsyncKeyedLock = new AsyncKeyedLock.AsyncKeyedLocker<string>(o =>
+ {
14
+ o.PoolSize = NumberOfLocks;
15
+ });
16
_ImageSharpWebLock = new SixLabors.ImageSharp.Web.Synchronization.AsyncKeyLock<string>();
17
}
18
0 commit comments