MeasureMap 2.4.0
See the version list below for details.
dotnet add package MeasureMap --version 2.4.0
NuGet\Install-Package MeasureMap -Version 2.4.0
<PackageReference Include="MeasureMap" Version="2.4.0" />
<PackageVersion Include="MeasureMap" Version="2.4.0" />
<PackageReference Include="MeasureMap" />
paket add MeasureMap --version 2.4.0
#r "nuget: MeasureMap, 2.4.0"
#:package MeasureMap@2.4.0
#addin nuget:?package=MeasureMap&version=2.4.0
#tool nuget:?package=MeasureMap&version=2.4.0
MeasureMap
.NET Benchmarking made simple
Measuremap allows profiling and benchmarking from simple code fragmets to full applications.
Visit https://wickedflame.github.io/MeasureMap/ for the full documentation.
MeasureMap uses the builder pattern and a fluent API to make profiling or benchmarking as simple as possible.
Profiling
Profiles are initiated with ProfilerSession.StartSession().
var result = ProfilerSession.StartSession()
.Task(() =>
{
// This represents the Task that needs testint
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(0.001));
})
.SetIterations(200)
.Assert(pr => pr.Iterations.Count() == 1)
.RunSession();
result.Trace();
Assert.IsTrue(result.AverageMilliseconds < 20);
Benchmarking
Benchmarks are a collection of ProfilerSessions. These are initiated and started with the BenchmarkRunner.
var sha256 = SHA256.Create();
var md5 = MD5.Create();
var data = new byte[10000];
new Random(42).NextBytes(data);
var runner = new BenchmarkRunner();
runner.SetIterations(10);
runner.Task("sha256", () => sha256.ComputeHash(data));
runner.Task("Md5", () => md5.ComputeHash(data));
var result = runner.RunSessions();
result.Trace();
MeasureMap Benchmark
Iterations: 10
Summary
| Name | Avg Time | Avg Ticks | Total | Fastest | Slowest | Memory Increase |
|---|---|---|---|---|---|---|
| sha256 | 00:00:00.0000924 | 924 | 00:00:00.0009243 | 776 | 1471 | 1392 |
| Md5 | 00:00:00.0000485 | 485 | 00:00:00.0004858 | 409 | 534 | 1392 |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 487 | 9/24/2025 |
| 3.0.0-RC48 | 223 | 8/27/2025 |
| 3.0.0-RC22 | 262 | 8/7/2025 |
| 2.4.0 | 353 | 6/5/2025 |
| 2.3.2 | 209 | 5/6/2025 |
| 2.3.1 | 171 | 5/2/2025 |
| 2.2.1 | 1,103 | 1/30/2023 |
| 2.2.0 | 785 | 12/19/2022 |