Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code

被引:0
|
作者
Jangda, Abhinav [1 ]
Powers, Bobby [1 ]
Berger, Emery D. [1 ]
Guha, Arjun [1 ]
机构
[1] Univ Massachusetts, Amherst, MA 01003 USA
基金
美国国家科学基金会;
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
All major web browsers now support WebAssembly, a low-level bytecode intended to serve as a compilation target for code written in languages like C and C++. A key goal of Web-Assembly is performance parity with native code; previous work reports near parity, with many applications compiled to WebAssembly running on average 10% slower than native code. However, this evaluation was limited to a suite of scientific kernels, each consisting of roughly 100 lines of code. Running more substantial applications was not possible because compiling code to WebAssembly is only part of the puzzle: standard Unix APIs are not available in the web browser environment. To address this challenge, we build BROWSIX-WASM, a significant extension to BROWSIX [29] that, for the first time, makes it possible to run unmodified WebAssembly-compiled Unix applications directly inside the browser. We then use BROWSIX-WASM to conduct the first large-scale evaluation of the performance of WebAssembly vs. native. Across the SPEC CPU suite of benchmarks, we find a substantial performance gap: applications compiled to WebAssembly run slower by an average of 45% (Firefox) to 55% (Chrome), with peak slowdowns of 2:08 x (Firefox) and 2:5 x (Chrome). We identify the causes of this performance degradation, some of which are due to missing optimizations and code generation issues, while others are inherent to the WebAssembly platform.
引用
收藏
页码:107 / 120
页数:14
相关论文
共 50 条
  • [1] ANALYZING JUDICIAL COURTS' PERFORMANCE: INEFFICIENCY VS. CONGESTION
    Espasa, Marta
    Esteller-More, Alejandro
    REVISTA DE ECONOMIA APLICADA, 2015, 23 (69): : 61 - 82
  • [2] PalmHash Code vs. PalmPhasor Code
    Leng, Lu
    Zhang, Jiashu
    NEUROCOMPUTING, 2013, 108 : 1 - 12
  • [3] Leaps and bounds: Analyzing WebAssembly's performance with a focus on bounds checking
    Szewczyk, Raven
    Stonehouse, Kimberley
    Barbalace, Antonio
    Spink, Tom
    2022 IEEE INTERNATIONAL SYMPOSIUM ON WORKLOAD CHARACTERIZATION (IISWC 2022), 2022, : 256 - 268
  • [4] Native Americans vs. environmentalists
    Minerd, J
    FUTURIST, 2000, 34 (03) : 10 - 11
  • [5] Standard Genetic Code vs. Supersymmetry Genetic Code - Alphabetical table vs. physicochemical table
    Rosandic, Marija
    Paar, Vladimir
    BIOSYSTEMS, 2022, 218
  • [6] Fast-BR vs. Fast-CT EXT: An Empirical Performance Study
    Rodriguez-Diez, Vladimir
    Fco. Martinez-Trinidad, Jose
    Ariel Carrasco-Ochoa, J.
    Lazo-Cortes, Manuel S.
    PATTERN RECOGNITION (MCPR 2017), 2017, 10267 : 127 - 136
  • [7] Not so fast:: intrinsic heart rate vs. β-adrenergic responsiveness in the aging human heart
    Joyner, Michael J.
    JOURNAL OF APPLIED PHYSIOLOGY, 2008, 105 (01) : 3 - 4
  • [8] Performance comparison of fast curing PMDI vs. regular PMDI binders
    Mente, D
    Gummaraju, R
    36th International Wood Composite Materials Symposium, Proceedings, 2002, : 132 - 132
  • [9] NATIVE-CODE COMPILERS ARE PORTABLE AND FAST
    LETWIN, JG
    LEWIS, AC
    ELECTRONIC DESIGN, 1981, 29 (10) : 153 - 158
  • [10] May vs. Might in native vs. non-native English: Implications for inference and judgement in legal and educational contexts
    Filipovic, Luna
    APPLIED LINGUISTICS REVIEW, 2016, 7 (02) : 181 - 201