Skip to content

Commit

Permalink
Update benchmark dotnet to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanx committed Jun 2, 2019
1 parent 222f521 commit 86a4ccf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/Stubble.Core.Benchmark/Benchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private class Config : ManualConfig
{
public Config()
{
Add(new MemoryDiagnoser());
Add(MemoryDiagnoser.Default);
Add(ExecutionValidator.FailOnError);
Add(new TagColumn("Renderer", name => name.Split('_')[0]));
Add(CsvMeasurementsExporter.Default);
Expand Down
2 changes: 1 addition & 1 deletion test/Stubble.Core.Benchmark/ParserBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private class Config : ManualConfig
{
public Config()
{
Add(new MemoryDiagnoser());
Add(MemoryDiagnoser.Default);
Add(ExecutionValidator.FailOnError);
Add(CsvMeasurementsExporter.Default);
Add(RPlotExporter.Default);
Expand Down
12 changes: 3 additions & 9 deletions test/Stubble.Core.Benchmark/Stubble.Core.Benchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<TargetFramework>net472</TargetFramework>
<RuntimeIdentifier>win7-x86</RuntimeIdentifier>
<AssemblyName>Stubble.Core.Benchmark</AssemblyName>
<OutputType>Exe</OutputType>
Expand All @@ -18,16 +18,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.10.14" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.10.14" />
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.11.5" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Nustache" Version="1.16.0.8" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
<Reference Include="System.Reflection" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions test/Stubble.Core.Benchmark/TwitterBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public class TwitterBenchmark
private class Config : ManualConfig
{
public Config()
{
Add(new MemoryDiagnoser());
{
Add(MemoryDiagnoser.Default);
Add(ExecutionValidator.FailOnError);
Add(CsvMeasurementsExporter.Default);
Add(Job.RyuJitX64);
Expand Down

0 comments on commit 86a4ccf

Please sign in to comment.