Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Benchmarks

Fernando Escolar edited this page May 6, 2021 · 2 revisions

We have run the benchmarks you can find in this repository on an Azure virtual machine. We have used Debian 10 as operating system and D2v3 as size:

BenchmarkDotNet=v0.12.1, OS=debian 10
Intel Xeon Platinum 8171M CPU 2.60GHz, 1 CPU, 2 logical cores and 1 physical core
.NET Core SDK=5.0.202
  [Host]     : .NET Core 5.0.5 (CoreCLR 5.0.521.16609, CoreFX 5.0.521.16609), X64 RyuJIT
  DefaultJob : .NET Core 5.0.5 (CoreCLR 5.0.521.16609, CoreFX 5.0.521.16609), X64 RyuJIT

And these are the average values we have obtained:

Method Categories Mean Error StdDev Median Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 142.84 us 3.463 us 9.824 us 139.94 us 1.00 0.00 0.9766 0.2441 - 19.97 KB
Add_Routes Add 92.80 us 1.452 us 1.287 us 92.66 us 0.66 0.02 0.8545 0.2441 - 15.96 KB
Get_Mvc Get 68.06 us 1.308 us 1.654 us 67.67 us 1.00 0.00 0.6104 - - 13.09 KB
Get_Routes Get 55.73 us 1.068 us 1.498 us 55.59 us 0.82 0.03 0.5493 - - 10.96 KB
Method Categories Mean Error StdDev Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 137.54 us 2.746 us 7.834 us 1.00 0.00 0.9766 - - 20.08 KB
Add_Routes Add 90.24 us 1.801 us 2.695 us 0.65 0.04 0.7324 0.2441 - 15.92 KB
Get_Mvc Get 67.32 us 1.309 us 1.507 us 1.00 0.00 0.6104 - - 13.05 KB
Get_Routes Get 54.94 us 1.061 us 1.620 us 0.82 0.03 0.5493 - - 10.92 KB
Method Categories Mean Error StdDev Median Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 140.92 us 3.502 us 10.160 us 137.68 us 1.00 0.00 0.9766 - - 20.08 KB
Add_Routes Add 91.01 us 1.766 us 2.102 us 91.01 us 0.67 0.04 0.8545 0.2441 - 15.97 KB
Get_Mvc Get 70.81 us 1.363 us 1.275 us 71.05 us 1.00 0.00 0.6104 - - 13.04 KB
Get_Routes Get 55.18 us 1.087 us 1.845 us 55.12 us 0.78 0.03 0.5493 - - 10.95 KB
Method Categories Mean Error StdDev Median Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 144.31 us 3.391 us 9.946 us 141.23 us 1.00 0.00 0.9766 - - 20 KB
Add_Routes Add 95.00 us 1.854 us 2.135 us 95.18 us 0.68 0.04 0.8545 0.2441 - 15.99 KB
Get_Mvc Get 69.21 us 1.354 us 1.662 us 69.31 us 1.00 0.00 0.6104 - - 13.02 KB
Get_Routes Get 54.71 us 1.066 us 1.838 us 54.58 us 0.79 0.04 0.5493 - - 10.96 KB
Method Categories Mean Error StdDev Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 145.12 us 3.302 us 9.633 us 1.00 0.00 0.9766 - - 19.95 KB
Add_Routes Add 93.39 us 1.004 us 0.839 us 0.65 0.04 0.8545 0.2441 - 15.92 KB
Get_Mvc Get 71.80 us 1.387 us 1.484 us 1.00 0.00 0.6104 - - 12.97 KB
Get_Routes Get 54.13 us 1.064 us 1.560 us 0.75 0.03 0.5493 - - 10.9 KB
Method Categories Mean Error StdDev Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 138.19 us 2.760 us 4.835 us 1.00 0.00 0.9766 0.2441 - 20.07 KB
Add_Routes Add 94.58 us 1.117 us 1.045 us 0.69 0.03 0.8545 0.2441 - 15.87 KB
Get_Mvc Get 71.03 us 1.097 us 0.973 us 1.00 0.00 0.6104 - - 12.96 KB
Get_Routes Get 57.15 us 1.140 us 1.741 us 0.81 0.03 0.5493 - - 10.97 KB
Method Categories Mean Error StdDev Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
Add_Mvc Add 139.67 us 2.777 us 5.215 us 1.00 0.00 0.9766 0.2441 - 20.01 KB
Add_Routes Add 95.69 us 1.751 us 2.215 us 0.68 0.03 0.7324 0.2441 - 15.86 KB
Get_Mvc Get 71.98 us 1.404 us 1.617 us 1.00 0.00 0.6104 - - 13.01 KB
Get_Routes Get 55.97 us 1.093 us 1.023 us 0.78 0.03 0.5493 - - 10.96 KB

Legends:

  • Categories : All categories of the corresponded method, class, and assembly
  • Mean : Arithmetic mean of all measurements
  • Error : Half of 99.9% confidence interval
  • StdDev : Standard deviation of all measurements
  • Ratio : Mean of the ratio distribution ([Current]/[Baseline])
  • RatioSD : Standard deviation of the ratio distribution ([Current]/[Baseline])
  • Gen 0 : GC Generation 0 collects per 1000 operations
  • Gen 1 : GC Generation 1 collects per 1000 operations
  • Gen 2 : GC Generation 2 collects per 1000 operations
  • Allocated : Allocated memory per single operation (managed only, inclusive, 1KB = 1024B)
  • 1 us : 1 Microsecond (0.000001 sec)
Clone this wiki locally