@@ -37,7 +37,7 @@ It's [easy](#Simplicity) to start writing benchmarks, check out an example
3737``` cs
3838[SimpleJob (RuntimeMoniker .Net472 , baseline : true )]
3939[SimpleJob (RuntimeMoniker .NetCoreApp30 )]
40- [SimpleJob (RuntimeMoniker .CoreRt30 )]
40+ [SimpleJob (RuntimeMoniker .NativeAot70 )]
4141[SimpleJob (RuntimeMoniker .Mono )]
4242[RPlotExporter ]
4343public class Md5VsSha256
@@ -75,30 +75,30 @@ Intel Core i7-7700K CPU 4.20GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cor
7575 [Host] : .NET Framework 4.7.2 (4.7.3468.0), X64 RyuJIT
7676 Net472 : .NET Framework 4.7.2 (4.7.3468.0), X64 RyuJIT
7777 NetCoreApp30 : .NET Core 3.0.0 (CoreCLR 4.700.19.46205, CoreFX 4.700.19.46214), X64 RyuJIT
78- CoreRt30 : .NET CoreRT 1 .0.28231.02 @Commit: 741d61493c560ba96e8151f9e56876d4d3828489 , X64 AOT
78+ NativeAot70 : .NET 7 .0.0-preview.4.22172.7 , X64 NativeAOT
7979 Mono : Mono 6.4.0 (Visual Studio), X64
8080
8181
8282| Method | Runtime | N | Mean | Error | StdDev | Ratio |
8383|------- |-------------- |------ |-----------:|----------:|----------:|------:|
8484| Sha256 | .NET 4.7.2 | 1000 | 7.735 us | 0.1913 us | 0.4034 us | 1.00 |
8585| Sha256 | .NET Core 3.0 | 1000 | 3.989 us | 0.0796 us | 0.0745 us | 0.50 |
86- | Sha256 | CoreRt 3 .0 | 1000 | 4.091 us | 0.0811 us | 0.1562 us | 0.53 |
86+ | Sha256 | NativeAOT 7 .0 | 1000 | 4.091 us | 0.0811 us | 0.1562 us | 0.53 |
8787| Sha256 | Mono | 1000 | 13.117 us | 0.2485 us | 0.5019 us | 1.70 |
8888| | | | | | | |
8989| Md5 | .NET 4.7.2 | 1000 | 2.872 us | 0.0552 us | 0.0737 us | 1.00 |
9090| Md5 | .NET Core 3.0 | 1000 | 1.848 us | 0.0348 us | 0.0326 us | 0.64 |
91- | Md5 | CoreRt 3 .0 | 1000 | 1.817 us | 0.0359 us | 0.0427 us | 0.63 |
91+ | Md5 | NativeAOT 7 .0 | 1000 | 1.817 us | 0.0359 us | 0.0427 us | 0.63 |
9292| Md5 | Mono | 1000 | 3.574 us | 0.0678 us | 0.0753 us | 1.24 |
9393| | | | | | | |
9494| Sha256 | .NET 4.7.2 | 10000 | 74.509 us | 1.5787 us | 4.6052 us | 1.00 |
9595| Sha256 | .NET Core 3.0 | 10000 | 36.049 us | 0.7151 us | 1.0025 us | 0.49 |
96- | Sha256 | CoreRt 3 .0 | 10000 | 36.253 us | 0.7076 us | 0.7571 us | 0.49 |
96+ | Sha256 | NativeAOT 7 .0 | 10000 | 36.253 us | 0.7076 us | 0.7571 us | 0.49 |
9797| Sha256 | Mono | 10000 | 116.350 us | 2.2555 us | 3.0110 us | 1.58 |
9898| | | | | | | |
9999| Md5 | .NET 4.7.2 | 10000 | 17.308 us | 0.3361 us | 0.4250 us | 1.00 |
100100| Md5 | .NET Core 3.0 | 10000 | 15.726 us | 0.2064 us | 0.1930 us | 0.90 |
101- | Md5 | CoreRt 3 .0 | 10000 | 15.627 us | 0.2631 us | 0.2461 us | 0.89 |
101+ | Md5 | NativeAOT 7 .0 | 10000 | 15.627 us | 0.2631 us | 0.2461 us | 0.89 |
102102| Md5 | Mono | 10000 | 30.205 us | 0.5868 us | 0.6522 us | 1.74 |
103103
104104```
@@ -107,10 +107,10 @@ The measured data can be exported to different formats (md, html, csv, xml, json
107107
108108![ ] ( docs/images/v0.12.0/rplot.png )
109109
110- * Supported runtimes:* .NET 5+, .NET Framework 4.6.1+, .NET Core 2.0+, Mono, CoreRT
110+ * Supported runtimes:* .NET 5+, .NET Framework 4.6.1+, .NET Core 2.0+, Mono, NativeAOT
111111* Supported languages:* C#, F#, Visual Basic
112112* Supported OS:* Windows, Linux, macOS
113- * Supported architectures:* x86, x64, ARM, ARM64 and Wasm
113+ * Supported architectures:* x86, x64, ARM, ARM64, Wasm and LoongArch64
114114
115115## Features
116116
@@ -128,7 +128,7 @@ For example, if you want to [parameterize](https://benchmarkdotnet.org/articles/
128128 and run benchmarks for each case.
129129If you want to compare benchmarks with each other,
130130 mark one of the benchmark as the [ baseline] ( https://benchmarkdotnet.org/articles/features/baselines.html )
131- via ` [Benchmark(baseline: true)] ` : BenchmarkDotNet will compare it with all of the other benchmarks.
131+ via ` [Benchmark(Baseline = true)] ` : BenchmarkDotNet will compare it with all of the other benchmarks.
132132If you want to compare performance in different environments, use [ jobs] ( https://benchmarkdotnet.org/articles/configs/jobs.html ) .
133133For example, you can run all the benchmarks on .NET Core 3.0 and Mono via
134134 ` [SimpleJob(RuntimeMoniker.NetCoreApp30)] ` and ` [SimpleJob(RuntimeMoniker.Mono)] ` .
@@ -295,8 +295,7 @@ You will avoid common pitfalls, control the accuracy of your measurements, and i
295295| Azure Pipelines | Ubuntu | [ ![ Azure Pipelines Ubuntu] ( https://dev.azure.com/dotnet/BenchmarkDotNet/_apis/build/status/BenchmarkDotNet%20-%20Ubuntu )] ( https://dev.azure.com/dotnet/BenchmarkDotNet/_build/latest?definitionId=56 ) |
296296| Azure Pipelines | macOS | [ ![ Azure Pipelines macOS] ( https://dev.azure.com/dotnet/BenchmarkDotNet/_apis/build/status/BenchmarkDotNet%20-%20macOS )] ( https://dev.azure.com/dotnet/BenchmarkDotNet/_build/latest?definitionId=57 ) |
297297| AppVeyor | Windows | [ ![ AppVeyor/Windows] ( https://img.shields.io/appveyor/ci/dotnetfoundation/benchmarkdotnet/master.svg )] ( https://ci.appveyor.com/project/dotnetfoundation/benchmarkdotnet/branch/master ) |
298- | Travis | Linux | [ ![ Travis/Linux] ( https://travis-matrix-badges.herokuapp.com/repos/dotnet/BenchmarkDotNet/branches/master/1 )] ( https://travis-ci.org/dotnet/BenchmarkDotNet ) |
299- | Travis | macOS | [ ![ Travis/macOS] ( https://travis-matrix-badges.herokuapp.com/repos/dotnet/BenchmarkDotNet/branches/master/2 )] ( https://travis-ci.org/dotnet/BenchmarkDotNet ) |
298+ | GitHub Actions | * | [ ![ build] ( https://github.com/dotnet/BenchmarkDotNet/actions/workflows/build.yaml/badge.svg )] ( https://github.com/dotnet/BenchmarkDotNet/actions/workflows/build.yaml ) |
300299
301300## Contributions are welcome!
302301
0 commit comments