https://github.com/thiagoloureiro/benchmark
Sample code for using Benchmark in .NET Application
https://github.com/thiagoloureiro/benchmark
Last synced: 3 months ago
JSON representation
Sample code for using Benchmark in .NET Application
- Host: GitHub
- URL: https://github.com/thiagoloureiro/benchmark
- Owner: thiagoloureiro
- Created: 2018-01-16T11:08:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T19:27:03.000Z (over 4 years ago)
- Last Synced: 2025-02-01T00:57:07.604Z (5 months ago)
- Language: C#
- Homepage: https://medium.com/@thiagoloureiro/benchmark-medindo-a-performance-na-sua-aplicacac%C3%A3o-8deef4a8fae2
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmark
[](https://ci.appveyor.com/project/thiagoloureiro/benchmark)Code sample for an article posted on Medium:
https://medium.com/@thiagoloureiro/benchmark-medindo-a-performance-na-sua-aplicacac%C3%A3o-8deef4a8fae2Using Bechmarkdotnet component.
Output
``` ini
BenchmarkDotNet=v0.11.5, OS=Windows 10.0.17763.475 (1809/October2018Update/Redstone5)
Intel Core i7-8750H CPU 2.20GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
[Host] : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3362.0
DefaultJob : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3362.0```
| Method | Mean | Error | StdDev |
|------------- |---------:|----------:|----------:|
| List_For | 11.46 ns | 0.0685 ns | 0.0641 ns |
| List_Foreach | 48.92 ns | 0.1628 ns | 0.1443 ns |