You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read more about BenchmarkDotNet NuGet packages: @docs.nuget
14
17
15
-
## Step 2. Design a benchmark
16
-
Create a new console application, write a class with methods that you want to measure and mark them with the `Benchmark` attribute. In the following example, we
18
+
## Step 3. Design a benchmark
19
+
Write a class with methods that you want to measure and mark them with the `Benchmark` attribute. In the following example, we
17
20
compare [MD5](https://en.wikipedia.org/wiki/MD5) and [SHA256](https://en.wikipedia.org/wiki/SHA-2) cryptographic hash functions:
18
21
19
22
```cs
@@ -57,7 +60,7 @@ namespace MyBenchmarks
57
60
58
61
The `BenchmarkRunner.Run<Md5VsSha256>()` call runs your benchmarks and print results to console output.
59
62
60
-
## Step 3. View results
63
+
## Step 4. View results
61
64
View the results. Here is an example of output from the above benchmark:
Analyze it. In your bin directory, you can find a lot of useful files with detailed information. For example:
80
83
@@ -88,4 +91,4 @@ Analyze it. In your bin directory, you can find a lot of useful files with detai
88
91
BenchmarkDotNet provides a lot of features which help to high-quality performance research.
89
92
If you want to know more about BenchmarkDotNet features, checkout the [Overview](../overview.md) page.
90
93
If you want have any questions, checkout the [FAQ](../faq.md) page.
91
-
If you didn't find answer for your question on this page, [ask it on gitter](https://gitter.im/dotnet/BenchmarkDotNet) or [create an issue](https://github.com/dotnet/BenchmarkDotNet/issues).
94
+
If you didn't find answer for your question on this page, [ask it on gitter](https://gitter.im/dotnet/BenchmarkDotNet) or [create an issue](https://github.com/dotnet/BenchmarkDotNet/issues).
0 commit comments