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);
|
||||
}
|
||||
|
||||
[Setup]
|
||||
[IterationSetup]
|
||||
public void Setup()
|
||||
{
|
||||
_collection = _frame;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BenchmarkDotNet" />
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.10.9" NoWarn="KRB4002" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
|||
private IPipe _pipe;
|
||||
private PipeFactory _pipelineFactory;
|
||||
|
||||
[Setup]
|
||||
[IterationSetup]
|
||||
public void Setup()
|
||||
{
|
||||
_pipelineFactory = new PipeFactory();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
|||
|
||||
public PipeFactory PipeFactory { get; set; }
|
||||
|
||||
[Setup]
|
||||
[IterationSetup]
|
||||
public void Setup()
|
||||
{
|
||||
PipeFactory = new PipeFactory();
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
|
|||
}
|
||||
}
|
||||
|
||||
[Setup]
|
||||
[IterationSetup]
|
||||
public void Setup()
|
||||
{
|
||||
var serviceContext = new ServiceContext
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue