public ManualResetEventReSetterWorker(ManualResetEvent syncPrimitive,
                                       IBenchmarkConfiguration benchmarkConfiguration,
                                       string resourceName,
                                       string pair)
     : base(benchmarkConfiguration, resourceName, pair)
 {
     MRE = syncPrimitive;
 }
Beispiel #2
0
 public GeneralLockWorker(ILockUC syncPrimitive,
                          IBenchmarkConfiguration benchmarkConfiguration,
                          string resourceName,
                          string pair)
     : base(benchmarkConfiguration, resourceName, pair)
 {
     Lock = syncPrimitive;
 }
Beispiel #3
0
 public BenchmarkConfiguration(IBenchmarkConfiguration benchmarkConfiguration)
 {
     BenchmarkManager = benchmarkConfiguration?.BenchmarkManager ?? throw new ArgumentNullException(nameof(benchmarkConfiguration.BenchmarkManager));
     PerfCollector    = benchmarkConfiguration?.PerfCollector ?? throw new ArgumentNullException(nameof(benchmarkConfiguration.PerfCollector));
     TimeSpan         = benchmarkConfiguration?.TimeSpan ?? BenchmarkGlobalSettings.TestingTimeSpan;
     Spins            = benchmarkConfiguration?.Spins ?? BenchmarkGlobalSettings.TestingSpins;
     TextWriter       = benchmarkConfiguration?.TextWriter;
 }
 public ConcurrentQueueWriterWorker(
     ConcurrentQueue <object> queue,
     IBenchmarkConfiguration benchmarkConfiguration,
     string resourceName,
     string pair)
     : base(benchmarkConfiguration, resourceName, pair)
 {
     Queue = queue;
 }
Beispiel #5
0
 public NeighborAsyncSemaphoreSlimLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #6
0
 protected BenchmarkWorker(IBenchmarkConfiguration benchmarkConfiguration, string resourceName, string pair)
     :       base(benchmarkConfiguration)
 {
     ResourceName = resourceName ?? string.Empty;
     Pair         = pair ?? string.Empty;
 }
Beispiel #7
0
 public BalancedProdConsHalfConcurrentQueue(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #8
0
 public DataCollectorBenchmark(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #9
0
 public SequentialWorker(IBenchmarkConfiguration benchmarkConfiguration, string resourceName, string pair) : base(benchmarkConfiguration, resourceName, pair)
 {
 }
Beispiel #10
0
 protected Benchmark(IBenchmarkConfiguration test) :  base(test)
 {
 }
 protected NeighborGeneralBenchmark(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #12
0
 protected HeavyGeneralBenchmark(IBenchmarkConfiguration test) : base(test)
 {
 }
 public HeavySpinLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
 public HeavySemaphoreLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #15
0
 public NeighborTicketSpinLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #16
0
 protected NeighborAsyncBenchmark(IBenchmarkConfiguration test) : base(test)
 {
 }
 public NeighborSemaphoreLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #18
0
 public ManualResetEventHalf(IBenchmarkConfiguration test) : base(test)
 {
 }
 public IBenchmark GetBenchmark(IBenchmarkConfiguration benchmarkConfiguration)
 {
     return(ConstructorInvoker?.Invoke(new object[] { benchmarkConfiguration }));
 }
 public HeavyAsyncSemaphoreSlimLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #21
0
 protected HeavyAsyncBenchmark(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #22
0
 public HeavyMonitorLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #23
0
 public HeavySequential(IBenchmarkConfiguration test) : base(test)
 {
 }
 public NeighborMutexLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
Beispiel #25
0
 public NeighborAsyncLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }
 public HeavyAsyncTicketSpinLockUC(IBenchmarkConfiguration test) : base(test)
 {
 }