Performance Data with Different Browsers
Generally, the performance of WebAssembly depends on the network connection, device and browser used. Below are some preliminary data from our testing.
- The Initial Load (cold cache) column lists the time spent on downloading the WASM file and compilation when a user first accesses the above demo page.
- The Subsequent Visits (warm cache) column lists the time spent on page load from the second time forward. The Average Time column lists the average time spent on localizing and decoding multiple barcodes from one video frame.
From our test, on Android phones, Firefox has much better speed than Chrome. If you have control over your users’ browser choice, Firefox is recommended.
On iOS phones (iPhones), we recommend using newer hardware, such as iPhone 7 or higher.
The performance on desktops is generally acceptable in different browsers across the operating systems. From our test, Safari performs less optimally on macOS.
Preloading the .wasm File