Research of WebAssembly usage for high-performance code development in web applications

Authors

  • O. Soluian
  • L. Lіushenko

DOI:

https://doi.org/10.34185/1562-9945-3-158-2025-19

Keywords:

JavaScript, WebAssembly, optimisation, performance, web applications.

Abstract

The paper examines the potential of using WebAssembly in web applications to ensure high performance. It is shown that WebAssembly technology allows achieving nearly native speed compared to JavaScript due to bytecode compilation. The performance of WebAssem-bly is analyzed using linear algebra algorithms with PolyBenchC benchmarks. The research results demonstrated that WebAssembly shows advantages in executing computationally in-tensive algorithms with small and medium data sizes. The main factors affecting WebAssem-bly's efficiency when processing large data volumes are identified.

References

Rishi Kiran Aiyatham Prabakar. WebAssembly Performance Analysis: A Comparative Study of C++ and Rust Implementations. www.diva-portal.org. Retrieved from https://www.diva-portal.org/smash/get/diva2:1879948/FULLTEXT01.pdf.

Joao De Macedo, Rui Abreu, Rui Pereira, Joao Saraiva. WebAssembly versus JavaScript: Energy and Runtime Performance. repositorio.inesctec.pt. Retrieved from https://repositorio.inesctec.pt/server/api/core/bitstreams/0870fb76-d463-456b-9e34-5b33bb7c0dd1/content.

Weihang Wang. Empowering Web Applications with WebAssembly: Are We There Yet? par.nsf.gov. Retrieved from

https://par.nsf.gov/servlets/purl/10312863https://dl.acm.org/doi/pdf/10.1145/3062341.3062363.

Andreas Haas, Andreas Rossberg, Derek L. Schuff, Ben L. Titzer. Bringing the Web up to Speed with WebAssembly. dl.acm.org. Retrieved from

https://dl.acm.org/doi/pdf/10.1145/3062341.3062363.

Cheerp Documentation Overview. cheerp.io. Retrieved from

https://cheerp.io/docs/overview.

WebAssembly. webassembly.org. Retrieved from https://webassembly.org/

Securing Stack Smashing Protection in WebAssembly Applications. www.researchgate.net. Retrieved from

https://www.researchgate.net/publication/385177717_Securing_Stack_Smashing_Protection_in_WebAssembly_Applications

LLVM Reference Manual. llvm.org. Retrieved from

https://llvm.org/docs/CodeGenerator.html

Jacob Nilsson, Andreas Trattner. Analyzing front-end performance using Webassembly. lup.lub.lu.se. Retrieved from https://lup.lub.lu.se/luur/download?func=downloadFile&recordOId=9094683&fileOId=9094684

AssemblyScript Runtime Variants. www.assemblyscript.org. Retrieved from https://www.assemblyscript.org/runtime.html#variants

PolyBenchC: the polyhedral benchmark suite. web.cs.ucla.edu. Retrieved from http://web.cs.ucla.edu/~pouchet/software/polybench/

Downloads

Published

2025-04-23