Old WebView vs. Chromium backed WebView Benchmark

Since Android 4.4 the WebView is backed by Chromium and not by it’s own rendering engine anymore. To see about what dimension of speed boost we can expect, I ran several benchmark tests to compare the old WebView against the new Chromium backed WebView.

All test were run on the very same Nexus 7 (once on Android 4.3 and once on Android 4.4). All other running apps has been stopped (as far as that is possible) and the tablet has been plugged in. The tests were run several times (also with restarting the app and the tablet, the results below are average values among all runs).

Javascript Performance

To test the Javascript performance the Octane Benchmark v1 has been used (bigger number means better). Percentage of improvement has been rounded to whole numbers.

TESTNAMEOLD WEBVIEWCHROMIUM WEBVIEW% IMPROV.
Richards (Core language features)19544197115%
Deltablue (Core language features)1996258530%
Crypto (Bit & Math operations)417343745%
Raytrace (Core language features)19394050109%
EarleyBoyer (Core language features)3390376911%
Regexp (Strings & arrays)47163435%
Splay (Memory & GC)2571177358%
NavierStokes (Strings & array)15007102284%
pdf.js (Strings & array)1850252737%
Mandreel (Virtual machine)12552668113%
GB Emulator (Virtual machine)1948310759%
CodeLoad (Loading & Parsing)1619226040%
Box2DWeb (Bit & Math operations)6691698154%
OCTANE SCORE (ALL)1419264486%

HTML5 Canvas Performance

To test the HTML5 Canvas performance Canvasmark 2013 has been used (bigger means better).

TESTNAMEOLD WEBVIEWCHROMIUM WEBVIEW% IMPROV.
CanvasMark 2013327414871354%

CSS Selector performance

To test the speed of CSS selectors a modified version of slickspeed has been used. Each selector has been used 1000 times instead of the default 5 times. In this test lower numbers means better (since it’s time in milliseconds).

TESTNAMEOLD WEBVIEVCHROMIUM WEBVIEW% IMPROV.
slickspeed29794274858%

Conclusion

The new (chromium based) WebView is faster – so far no surprise. But looking at the numbers, the performance has really increased in several areas (like up to 354% for HTML5 Canvas or 358% for some Javascript test). So your WebView content should run way smoother and faster then before. (But please don’t use that as an opportunity to package your iOS like WebApp into an APK and put it into PlayStore.. please!)

Also take care, that this has been tested on two different OS versions, meaning the improvement might not only be the WebView implementation, but also changes in the operating system. Since the chromium WebView was first introduced on Android 4.4 (at least without rooting devices) the results are in my opinion still showing what performance increase you can expect – at least if you don’t root your device and enable chromium based WebView preversion in pre Android 4.4 devices (in that rare cases the results may differ).

Special thanks go to my company inovex for their support.