TY - GEN
T1 - Performance Evaluation of Machine Learning Applications Using WebAssembly Across Different Programming Languages
AU - Khan, Sallar
AU - Malik, Tania
AU - Hasanov, Khalid
N1 - Publisher Copyright:
© 2025 Copyright held by the owner/author(s).
PY - 2025/9/9
Y1 - 2025/9/9
N2 - WebAssembly (WASM) has emerged as a promising compilation target for languages traditionally not executed on the web and enable the cross-platform deployment of high-performance applications. While its general use cases have been well studied, the performance implications of executing Machine Learning (ML) workloads via WASM across different programming languages and runtime environments remain relatively unexplored. This paper presents a systematic evaluation of two representative ML models, K-Means and Logistic Regression, implemented in Python, Rust, and C++ and compiled to WASM. These models are executed in two distinct environments: a web browser and the WebAssembly System Interface (WASI), and their execution time and accuracy is compared against each programming language across both environments. This study aims to provide insight into the trade-offs and practical considerations involved in deploying ML workloads using WebAssembly across different language ecosystems and runtime configurations.
AB - WebAssembly (WASM) has emerged as a promising compilation target for languages traditionally not executed on the web and enable the cross-platform deployment of high-performance applications. While its general use cases have been well studied, the performance implications of executing Machine Learning (ML) workloads via WASM across different programming languages and runtime environments remain relatively unexplored. This paper presents a systematic evaluation of two representative ML models, K-Means and Logistic Regression, implemented in Python, Rust, and C++ and compiled to WASM. These models are executed in two distinct environments: a web browser and the WebAssembly System Interface (WASI), and their execution time and accuracy is compared against each programming language across both environments. This study aims to provide insight into the trade-offs and practical considerations involved in deploying ML workloads using WebAssembly across different language ecosystems and runtime configurations.
UR - https://arrow.tudublin.ie/dfrhro/5/
U2 - 10.1145/3731545.3736817
DO - 10.1145/3731545.3736817
M3 - Conference contribution
T3 - HPDC 2025 - Proceedings of the 34th International Symposium on High-Performance Parallel and Distributed Computing
BT - HPDC 2025 - Proceedings of the 34th International Symposium on High-Performance Parallel and Distributed Computing
PB - Association for Computing Machinery (ACM)
T2 - 34th International Symposium on High-Performance Parallel and Distributed Computing
Y2 - 20 July 2025 through 23 July 2025
ER -