Skip to content

Commit

Permalink
Fixing benchmarking issues for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Turnerj committed Feb 9, 2021
1 parent 367e9be commit 936cc00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public abstract class BaseCacheChangeExtensionBenchmark : BaseExtensionsBenchmar
public DateTime BenchmarkValue;

[GlobalSetup]
public void Setup()
public virtual void Setup()
{
BenchmarkValue = DateTime.UtcNow;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ConfigSettings : ManualConfig
{
public ConfigSettings()
{
AddJob(Job.Default.WithRuntime(CoreRuntime.Core31).WithMaxIterationCount(200));
AddJob(Job.Default.WithRuntime(CoreRuntime.Core50).WithMaxIterationCount(200));
AddDiagnoser(MemoryDiagnoser.Default);

SummaryStyle = new BenchmarkDotNet.Reports.SummaryStyle(CultureInfo, true, SizeUnit.B, TimeUnit.Nanosecond);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ namespace CacheTower.Benchmarks.Extensions.Redis
{
public class RedisRemoteEvictionExtensionBenchmark : BaseCacheChangeExtensionBenchmark
{
[GlobalSetup]
public new void Setup()
public override void Setup()
{
CacheExtensionProvider = () => new RedisRemoteEvictionExtension(RedisHelper.GetConnection(), new ICacheLayer[] { new MemoryCacheLayer() });
}
Expand Down

0 comments on commit 936cc00

Please sign in to comment.