NBench 0.0.2
NBench is a cross-platform automated performance profiling and testing framework for.NET applications.
Showing the top 20 packages that depend on NBench.
Packages | Downloads |
---|---|
NBench.Runner
Cross-platform performance benchmarking and testing framework for .NET applications.
|
18 |
NBench.Runner
Cross-platform performance benchmarking and testing framework for .NET applications.
|
22 |
NBench.Runner
NBench is a cross-platform automated performance profiling and testing framework for.NET applications.
|
18 |
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
}
}
```
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
2.0.1 | 42 | 02/13/2024 |
2.0.0 | 24 | 02/13/2024 |
1.2.2 | 28 | 02/13/2024 |
1.2.1 | 32 | 02/13/2024 |
1.2.0 | 28 | 02/13/2024 |
1.1.0 | 29 | 02/13/2024 |
1.0.4 | 26 | 02/13/2024 |
1.0.3 | 26 | 02/13/2024 |
1.0.2 | 28 | 02/13/2024 |
1.0.1 | 27 | 02/13/2024 |
1.0.0 | 29 | 02/13/2024 |
0.3.4 | 26 | 02/13/2024 |
0.3.3 | 20 | 02/13/2024 |
0.3.2 | 33 | 02/13/2024 |
0.3.1 | 31 | 02/13/2024 |
0.3.0 | 21 | 02/13/2024 |
0.2.2 | 32 | 02/13/2024 |
0.2.1 | 26 | 02/13/2024 |
0.2.0 | 28 | 02/13/2024 |
0.1.6 | 27 | 02/10/2020 |
0.1.5 | 27 | 02/10/2020 |
0.1.4 | 29 | 02/13/2024 |
0.1.3 | 32 | 02/13/2024 |
0.1.2 | 21 | 02/13/2024 |
0.1.1 | 23 | 02/13/2024 |
0.1.0 | 33 | 02/13/2024 |
0.0.2 | 29 | 02/13/2024 |