dotnet / dotnet/maui

MAUI Blazor Hybrid has worse render performance than Blazor Server and WebAssembly

Open
#28,667 6 comments 3 reactions 0 assignees View on GitHub
area-blazor perf/general
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

For an upcoming project, we planned to use MAUI Hybrid to create both a Web App and a Native App.

To test whether it could meet the required performance, I created a small benchmark where data is requested from a database, iterated over, and for each item, an SVG rectangle is generated.

Surprisingly, contrary to my expectations, MAUI Hybrid had a higher rendering time than Blazor Server. I had anticipated that it would perform at least at the same level, if not faster.

| Server| WebAssembly | WebAssembly AOT | MAUI Hybrid |
|--------|--------|--------|--------|
| 82.7ms| 79.8ms | 56.3ms | 109.6ms |

Based on my research, others have also experienced performance issues due to data being marshalled between the .NET Runtime and the underlying WebView.

Are there any plans to improve this, or at the very least, provide an option to use WebAssembly in MAUI Hybrid?

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reproducing the database-and-SVG benchmark across Blazor Server, WebAssembly, WebAssembly AOT, and MAUI Hybrid, then trace the reported runtime-to-WebView marshalling cost. Done would require a validated explanation and an agreed performance improvement or supported WebAssembly option.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, wasm
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.