React to changes in BenchmarkDotNet 0.10.9 (#2006)
* fixup! React to changes in BenchmarkDotNet 0.10.9
This commit is contained in:
parent
fd66472b39
commit
7f23ff08ce
|
|
@ -91,7 +91,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
_frame = new Frame<object>(application: null, frameContext: frameContext);
|
_frame = new Frame<object>(application: null, frameContext: frameContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
_collection = _frame;
|
_collection = _frame;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
public ReadableBuffer _buffer;
|
public ReadableBuffer _buffer;
|
||||||
public Frame<object> _frame;
|
public Frame<object> _frame;
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
var serviceContext = new ServiceContext
|
var serviceContext = new ServiceContext
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
[Params(Startup.None, Startup.Sync, Startup.Async)]
|
[Params(Startup.None, Startup.Sync, Startup.Async)]
|
||||||
public Startup OnStarting { get; set; }
|
public Startup OnStarting { get; set; }
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
_frame.Reset();
|
_frame.Reset();
|
||||||
|
|
@ -119,7 +119,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Cleanup]
|
[IterationCleanup]
|
||||||
public void Cleanup()
|
public void Cleanup()
|
||||||
{
|
{
|
||||||
var reader = _outputPipe.Reader;
|
var reader = _outputPipe.Reader;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BenchmarkDotNet" />
|
<PackageReference Include="BenchmarkDotNet" Version="0.10.9" NoWarn="KRB4002" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
private IPipe _pipe;
|
private IPipe _pipe;
|
||||||
private PipeFactory _pipelineFactory;
|
private PipeFactory _pipelineFactory;
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
_pipelineFactory = new PipeFactory();
|
_pipelineFactory = new PipeFactory();
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
|
|
||||||
public PipeFactory PipeFactory { get; set; }
|
public PipeFactory PipeFactory { get; set; }
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
PipeFactory = new PipeFactory();
|
PipeFactory = new PipeFactory();
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
var serviceContext = new ServiceContext
|
var serviceContext = new ServiceContext
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
||||||
return _frame.WriteAsync(new ArraySegment<byte>(_helloWorldPayload), default(CancellationToken));
|
return _frame.WriteAsync(new ArraySegment<byte>(_helloWorldPayload), default(CancellationToken));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Setup]
|
[IterationSetup]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
var pipeFactory = new PipeFactory();
|
var pipeFactory = new PipeFactory();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue