NBench 0.0.2

NBench is a cross-platform automated performance profiling and testing framework for.NET applications.

There is a newer version of this package available.
See the version list below for details.
Install-Package NBench -Version 0.0.2
dotnet add package NBench --version 0.0.2
<PackageReference Include="NBench" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NBench --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

First bleeding-edge, alpha release of NBench.
To write an NBench test, use the following syntax:
```csharp
public class SimpleCounterBenchmark
{
public const string CounterName = "DumbCounter";
private Counter _counter;
[PerfSetup]
public void SetUp(BenchmarkContext context)
{
_counter = context.GetCounter(CounterName);
}
/// <summary>
/// Run 3 tests, 1 second long each
/// </summary>
[PerformanceBenchmark(Description = "Simple iteration collection test", RunMode = RunType.Iterations, TestMode = TestType.Test, RunTimeMilliseconds = 1000, NumberOfIterations = 30)]
[CounterMeasurement(CounterName)]
[MemoryAssertion(MemoryMetric.TotalBytesAllocated, MustBe.LessThan, ByteConstants.EightKb)]
[GcTotalAssertion(GcMetric.TotalCollections, GcGeneration.Gen2, MustBe.ExactlyEqualTo, 0d)]
public void Run()
{
_counter.Increment();
}
[PerfCleanup]
public void CleanUp(BenchmarkContext context)
{
//no-op
}
}
```

Dependencies

This package has no dependencies.

Showing the top 5 GitHub repositories that depend on NBench:

Repository Stars
akkadotnet/akka.net
Port of Akka actors for .NET
Azure/DotNetty
DotNetty project – a port of netty, event-driven asynchronous network application framework
RicoSuter/NJsonSchema
JSON Schema reader, generator and validator for .NET
helios-io/helios
reactive socket middleware for .NET
SonarSource/sonar-dotnet
Code analyzer for C# and VB.NET projects https://redirect.sonarsource.com/plugins/vbnet.html

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
2.0.1 1,727 2/25/2020
2.0.0 125 2/24/2020
1.2.2 43,731 7/24/2018
1.2.1 1,101 7/11/2018
1.2.0 368 7/10/2018
1.1.0 1,753 7/2/2018
1.0.4 97,981 6/16/2017
1.0.3 585 6/11/2017
1.0.2 540 6/2/2017
1.0.1 19,503 3/31/2017
1.0.0 3,172 3/15/2017
0.3.4 28,707 12/16/2016
0.3.3 736 12/8/2016
0.3.2 466 12/8/2016
0.3.1 9,968 8/16/2016
0.3.0 6,527 5/24/2016
0.2.2 1,616 5/3/2016
0.2.1 1,676 4/7/2016
0.2.0 433 4/6/2016
0.1.6 976 2/15/2016
0.1.5 6,138 12/10/2015
0.1.4 471 12/10/2015
0.1.3 488 12/8/2015
0.1.2 444 12/8/2015
0.1.1 452 12/7/2015
0.1.0 467 12/4/2015
0.0.2 480 12/4/2015
Show less