DEV Community

Bart Czernicki
Bart Czernicki

Posted on

.NET 6 Preview - Major Blazor Performance Improvements

.NET 6 Preview 1 bits were released yesterday (info below)...
https://devblogs.microsoft.com/dotnet/announcing-net-6-preview-1/
https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-1/ (ASP.NET)

.NET 6 Preview 1 for Blazor WebAssembly (WASM) includes many performance enhancements planned. For example, in Preview 1 the interpreter has been improved greatly. This gives Blazor WASM a VERY nice performance bump in .NET 6 for "FREE" by just using the new .NET 6 runtime.

I ran some performance tests comparing .NET Core 3.x, .NET 5 and .NET 6 Preview 1...and you can see .NET 6 is 22%-32% faster across various compute devices/browsers.
Alt Text

Run the performance tests yourselves and compare!
.NET 6 - https://statisticsandblazordotnet6.azureedge.net/
.NET 5 - https://statisticsandblazordotnet5.azureedge.net/
.NET 3 (Core) - https://statisticsandblazordotnetcore3.azureedge.net/

Source Code: https://github.com/bartczernicki/Test-Blazor-WebAssembly-StatisticsAndML-DotNet6

Top comments (1)

Collapse
 
sahan profile image
Sahan • Edited

I've always wondered how Blazor WASM would perform locally in different devices and browsers with stat workloads. Impressive! Thanks for putting this together!