Empowering Web Applications with WebAssembly: Are We There Yet?
Author:
- 1 November 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1301-1305
Abstract
WebAssembly is the newest web standard. It defines a compact bytecode format that allows it to be loaded and executed fast. While WebAssembly is generally believed to be faster than JavaScript, there have been inconsistent results when it comes to showing which code is faster. Unfortunately, insufficient study has been conducted to understand the performance benefits of WebAssembly. In this paper, we investigate how browser engines optimize WebAssembly execution in comparison to JavaScript. In particular, we measure their execution time and memory usage with diverse programs. Our results show that (1) JIT optimization in Chrome significantly impacts JavaScript speed but has no discernible effect on WebAssembly speed; (2) WebAssembly uses much more memory than JavaScript. We hope that our findings can help WebAssembly virtual machine developers uncover optimization opportunities.Keywords
This publication has 11 references indexed in Scilit:
- MinerRay2020
- WASim2020
- WasmView2020
- Position Paper2019
- New Kid on the Web: A Study on the Prevalence of WebAssembly in the Wild2019
- Wasabi2019
- CT-wasm: type-driven secure cryptography for the web ecosystemProceedings of the ACM on Programming Languages, 2019
- Sparse matrices on the web2018
- WATT : A novel web-based toolkit to generate WebAssembly-based libraries and applications2018
- Bringing the web up to speed with WebAssembly2017