We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff513bc + 1dd0b2b commit c8bd982Copy full SHA for c8bd982
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