Skip to content

Instantly share code, notes, and snippets.

@martincostello

martincostello/benchmarks.md Secret

Last active Apr 15, 2021
Embed
What would you like to do?
ASP.NET Core 5 vs ASP.NET Core 6 preview.3 web application benchmark

ASP.NET Core 5 vs ASP.NET Core 6 preview 3

Summary

Method Mean Ratio Allocated Ratio
Health 0.80 0.51
GetAll 0.82 0.56
GetOne 0.77 0.47
GetPartial 0.57 0.41
Post 0.82 0.56

net5.0

BenchmarkDotNet=v0.12.1.1521-nightly, OS=Windows 10.0.19041.867 (2004/May2020Update/20H1)
Intel Core i9-9980HK CPU 2.40GHz, 1 CPU, 16 logical and 8 physical cores
.NET SDK=5.0.202
  [Host]      : .NET 5.0.5 (5.0.521.16609), X64 RyuJIT
  Application : .NET 5.0.5 (5.0.521.16609), X64 RyuJIT

Job=Application  Runtime=.NET 5.0
Toolchain=.NET 5.0  
Method Mean Error StdDev Gen 0 Gen 1 Gen 2 Allocated
Health 1.992 ms 0.0393 ms 0.0511 ms 7.8125 - - 993 KB
GetAll 10.194 ms 0.2038 ms 0.4516 ms 31.2500 - - 4,010 KB
GetOne 6.797 ms 0.0808 ms 0.0755 ms 15.6250 - - 3,387 KB
GetPartial 5.440 ms 0.1076 ms 0.1360 ms 15.6250 7.8125 - 3,012 KB
Post 2.575 ms 0.0505 ms 0.0816 ms 7.8125 - - 1,102 KB

net6.0

BenchmarkDotNet=v0.12.1.1521-nightly, OS=Windows 10.0.19041.867 (2004/May2020Update/20H1)
Intel Core i9-9980HK CPU 2.40GHz, 1 CPU, 16 logical and 8 physical cores
.NET SDK=6.0.100-preview.3.21202.5
  [Host]      : .NET 6.0.0 (6.0.21.20104), X64 RyuJIT
  Application : .NET 6.0.0 (6.0.21.20104), X64 RyuJIT

Job=Application  Runtime=.NET 6.0
Toolchain=.NET 6.0  
Method Mean Error StdDev Gen 0 Gen 1 Gen 2 Allocated
Health 1.594 ms 0.0276 ms 0.0245 ms 3.9063 - - 506 KB
GetAll 8.386 ms 0.1057 ms 0.0988 ms 15.6250 - - 2,234 KB
GetOne 5.260 ms 0.1029 ms 0.2079 ms - - - 1,615 KB
GetPartial 3.876 ms 0.0764 ms 0.1167 ms 7.8125 - - 1,243 KB
Post 2.100 ms 0.0366 ms 0.0306 ms 3.9063 - - 613 KB
@srezasm

This comment has been minimized.

Copy link

@srezasm srezasm commented Apr 13, 2021

Nice and smooth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment