DEV Community

Bart Czernicki
Bart Czernicki

Posted on

3 1

.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

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

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!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay