Comparing process working sets of WebView-based Windows Desktop apps
Andrew Nosenko

Andrew Nosenko @noseratio

About: Dad, self-employed, problem solver at heart, async all the way. Formerly a principal software engineer at Nuance Communications. Occasionally I tweet, blog and answer my own StackOverflow questions.

Location:
Sydney, Australia
Joined:
Sep 20, 2019

Comparing process working sets of WebView-based Windows Desktop apps

Publish Date: Aug 31 '20
3 0

Updated, related discussion in MicrosoftEdge Feedback repo. The source code repo with examples of each WebView-based app mentioned here is now available, too.

Let's compare the working sets of various WebView-based Windows Desktop apps. Each application simply loads the Bing homepage.

App Working set size
Legacy IE11 WebBrowser WPF 164 MB
MSEdge WebView2 WPF 582 MB
Chromely/CefSharp 516 MB
Electron v10 570 MB

A screenshot of Process Explorer:

WebView working memory sets


Updated on 2021/05/27: Prompted by this Twitter thread, I've re-verified the WPF + WebView2 memory footprint with now-GA WebView2 Runtime (v90.0.818.66), Microsoft.Web.WebView2 (v1.0.818.41) and .NET 5 (v5.0.6).

I witness an amazing improvement, ~270MB now vs ~580MB I saw back in August 2020 when WebView2 was in preview:

image

The source code is here. Well done @MSEdgeDev team!

Comments 0 total

    Add comment