Skip to content

Commit

Permalink
Upgraded internal benchmarking to .NET 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Turnerj committed Feb 9, 2021
1 parent d54a79f commit 367e9be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/CacheTower.Benchmarks/CacheStackBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ConfigSettings : ManualConfig
{
public ConfigSettings()
{
AddJob(Job.Default.WithRuntime(CoreRuntime.Core31).WithMaxIterationCount(50));
AddJob(Job.Default.WithRuntime(CoreRuntime.Core50).WithMaxIterationCount(50));
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 @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

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 @@ -15,7 +15,7 @@

namespace CacheTower.Benchmarks.Providers
{
[SimpleJob(RuntimeMoniker.NetCoreApp31), MemoryDiagnoser, Orderer(SummaryOrderPolicy.FastestToSlowest)]
[SimpleJob(RuntimeMoniker.NetCoreApp50), MemoryDiagnoser, Orderer(SummaryOrderPolicy.FastestToSlowest)]
public class CacheLayerComparisonBenchmark
{
[Params(1, 10)]
Expand Down

0 comments on commit 367e9be

Please sign in to comment.