React to changes in BenchmarkDotNet 0.10.9 (#2006)

* fixup! React to changes in BenchmarkDotNet 0.10.9
This commit is contained in:
Nate McMaster 2017-08-18 10:57:48 -07:00 committed by GitHub
parent fd66472b39
commit 7f23ff08ce
8 changed files with 9 additions and 9 deletions

View File

@ -91,7 +91,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
_frame = new Frame<object>(application: null, frameContext: frameContext);
}
[Setup]
[IterationSetup]
public void Setup()
{
_collection = _frame;

View File

@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
public ReadableBuffer _buffer;
public Frame<object> _frame;
[Setup]
[IterationSetup]
public void Setup()
{
var serviceContext = new ServiceContext

View File

@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
[Params(Startup.None, Startup.Sync, Startup.Async)]
public Startup OnStarting { get; set; }
[Setup]
[IterationSetup]
public void Setup()
{
_frame.Reset();
@ -119,7 +119,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
return frame;
}
[Cleanup]
[IterationCleanup]
public void Cleanup()
{
var reader = _outputPipe.Reader;

View File

@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="BenchmarkDotNet" Version="0.10.9" NoWarn="KRB4002" />
</ItemGroup>
</Project>

View File

@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
private IPipe _pipe;
private PipeFactory _pipelineFactory;
[Setup]
[IterationSetup]
public void Setup()
{
_pipelineFactory = new PipeFactory();

View File

@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
public PipeFactory PipeFactory { get; set; }
[Setup]
[IterationSetup]
public void Setup()
{
PipeFactory = new PipeFactory();

View File

@ -166,7 +166,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
}
}
[Setup]
[IterationSetup]
public void Setup()
{
var serviceContext = new ServiceContext

View File

@ -106,7 +106,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
return _frame.WriteAsync(new ArraySegment<byte>(_helloWorldPayload), default(CancellationToken));
}
[Setup]
[IterationSetup]
public void Setup()
{
var pipeFactory = new PipeFactory();