NBench 0.0.2
See the version list below for details.
dotnet add package NBench --version 0.0.2
NuGet\Install-Package NBench -Version 0.0.2
<PackageReference Include="NBench" Version="0.0.2" />
paket add NBench --version 0.0.2
#r "nuget: NBench, 0.0.2"
// Install NBench as a Cake Addin #addin nuget:?package=NBench&version=0.0.2 // Install NBench as a Cake Tool #tool nuget:?package=NBench&version=0.0.2
NBench is a cross-platform automated performance profiling and testing framework for.NET applications.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on NBench:
Package | Downloads |
---|---|
Pro.NBench.xUnit
Allows NBench tests to be discovered, executed, reported, and debugged using xUnit in ReSharper, and Visual Studio Test Explorer. Please refer to the project Url for usage information: https://github.com/Pro-Coded/Pro.NBench.xUnit |
|
NBench.PerformanceCounters
Windows only. Adds performance counter support to NBench measurements. |
|
NBench.Runner.DotNetCli
Cross-platform performance benchmarking and testing framework for .NET applications. |
|
NBench-PerfAssert
Package Description |
GitHub repositories (8)
Showing the top 5 popular GitHub repositories that depend on NBench:
Repository | Stars |
---|---|
akkadotnet/akka.net
Canonical actor model implementation for .NET with local + distributed actors in C# and F#.
|
|
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
|
|
cuteant/SpanNetty
Port of Netty(v4.1.51.Final) for .NET
|
Version | Downloads | Last updated |
---|---|---|
2.0.1 | 301,879 | 2/25/2020 |
2.0.0 | 697 | 2/24/2020 |
1.2.2 | 233,873 | 7/24/2018 |
1.2.1 | 2,632 | 7/11/2018 |
1.2.0 | 1,244 | 7/10/2018 |
1.1.0 | 7,100 | 7/2/2018 |
1.0.4 | 125,072 | 6/16/2017 |
1.0.3 | 1,393 | 6/11/2017 |
1.0.2 | 1,555 | 6/2/2017 |
1.0.1 | 25,955 | 3/31/2017 |
1.0.0 | 4,164 | 3/15/2017 |
0.3.4 | 46,211 | 12/16/2016 |
0.3.3 | 1,720 | 12/8/2016 |
0.3.2 | 1,397 | 12/8/2016 |
0.3.1 | 11,358 | 8/16/2016 |
0.3.0 | 8,334 | 5/24/2016 |
0.2.2 | 2,581 | 5/3/2016 |
0.2.1 | 2,670 | 4/7/2016 |
0.2.0 | 1,403 | 4/6/2016 |
0.1.6 | 1,798 | 2/15/2016 |
0.1.5 | 15,250 | 12/10/2015 |
0.1.4 | 1,188 | 12/10/2015 |
0.1.3 | 1,191 | 12/8/2015 |
0.1.2 | 1,161 | 12/8/2015 |
0.1.1 | 1,146 | 12/7/2015 |
0.1.0 | 1,409 | 12/4/2015 |
0.0.2 | 1,502 | 12/4/2015 |
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
}
}
```