Navigation Menu

Skip to content

Commit

Permalink
Performance tuning, cleanup of retry policy
Browse files Browse the repository at this point in the history
  • Loading branch information
phatboyg committed May 10, 2018
1 parent 81a6ee9 commit 1c494e7
Show file tree
Hide file tree
Showing 48 changed files with 742 additions and 2,192 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,6 +1,8 @@
build_artifacts/*
build_output/*

BenchmarkDotNet.Artifacts

.fake/**/*

**/*.suo
Expand Down
5 changes: 2 additions & 3 deletions build.fsx
Expand Up @@ -7,10 +7,9 @@ open Fake.SemVerHelper

let buildArtifactPath = FullName "./build_artifacts"
let packagesPath = FullName "./src/packages"
let keyFile = FullName "./GreenPipes.snk"

let assemblyVersion = "2.0.0.0"
let baseVersion = "2.0.0"
let assemblyVersion = "2.1.0.0"
let baseVersion = "2.1.0"

let envVersion = (environVarOrDefault "APPVEYOR_BUILD_VERSION" (baseVersion + ".0"))
let buildVersion = (envVersion.Substring(0, envVersion.LastIndexOf('.')))
Expand Down
31 changes: 31 additions & 0 deletions src/GreenPipes.BenchmarkConsole/AgentBenchmarkConfig.cs
@@ -0,0 +1,31 @@
namespace GreenPipes.BenchmarkConsole
{
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Environments;
using BenchmarkDotNet.Jobs;


public class AgentBenchmarkConfig :
ManualConfig
{
public AgentBenchmarkConfig()
{
Add(MemoryDiagnoser.Default);
Add(new Job
{
Env = {Runtime = Runtime.Core},
Run =
{
TargetCount = 2,
RunStrategy = RunStrategy.Throughput,
WarmupCount = 1,
LaunchCount = 1,
UnrollFactor = 1,
InvocationCount = 10_000
}
});
}
}
}
64 changes: 0 additions & 64 deletions src/GreenPipes.BenchmarkConsole/Analytics.cs

This file was deleted.

31 changes: 31 additions & 0 deletions src/GreenPipes.BenchmarkConsole/DotNetCoreBenchmarkConfig.cs
@@ -0,0 +1,31 @@
namespace GreenPipes.BenchmarkConsole
{
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Environments;
using BenchmarkDotNet.Jobs;


public class DotNetCoreBenchmarkConfig :
ManualConfig
{
public DotNetCoreBenchmarkConfig()
{
Add(MemoryDiagnoser.Default);
Add(new Job
{
Env = {Runtime = Runtime.Core},
Run =
{
TargetCount = 2,
RunStrategy = RunStrategy.Throughput,
WarmupCount = 1,
LaunchCount = 1,
UnrollFactor = 1,
InvocationCount = 1_000_000
}
});
}
}
}
26 changes: 15 additions & 11 deletions src/GreenPipes.BenchmarkConsole/GreenPipes.BenchmarkConsole.csproj
@@ -1,16 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyName>GreenPipes.BenchmarkConsole</AssemblyName>
<PackageId>GreenPipes.BenchmarkConsole</PackageId>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GreenPipes\GreenPipes.csproj" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyName>GreenPipes.BenchmarkConsole</AssemblyName>
<PackageId>GreenPipes.BenchmarkConsole</PackageId>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GreenPipes\GreenPipes.csproj" />
<PackageReference Include="BenchmarkDotNet" Version="0.10.14" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
<PackageReference Include="BenchmarkDotNet.Core" Version="0.10.14" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
</Project>
</Project>

0 comments on commit 1c494e7

Please sign in to comment.