TY - JOUR T1 - Performance Comparison of WebAssembly and Phaser in Procedural Maze Generation AU - Midzic, Noa AU - Novak, Matija PY - 2025 DA - August Y2 - 2025 DO - 10.55549/epstem.1753850 JF - The Eurasia Proceedings of Science Technology Engineering and Mathematics JO - EPSTEM PB - ISRES Publishing WT - DergiPark SN - 2602-3199 SP - 172 EP - 181 VL - 34 LA - en AB - Phaser and WebAssembly are both excellent options for web game development, each offering unique advantages. This paper specifically focuses on procedural maze generation and compares the performance of WebAssembly (using C++ and SDL) and Phaser across various levels of complexity, defined by maze dimensions. The study aims to assess execution time efficiency and identify performance trends across different scenarios. Using the Depth-First Search (DFS) algorithm, we conducted multiple test runs at increasing maze sizes to evaluate the scalability and computational efficiency of both technologies. The results indicate that WebAssembly enables near-native execution of C++ code in web browsers, leading to significant performance advantages in larger maze dimensions. Specifically, WebAssembly exhibited a more consistent, linear increase in execution time, making it a strong candidate for handling computationally intensive tasks. In contrast, Phaser performed slightly better in smaller maze dimensions but demonstrated greater variability and steeper increases in execution time as complexity grew. The findings suggest that while Phaser is an accessible and user-friendly framework for game development, its performance may not scale as efficiently as WebAssembly when dealing with complex procedural generation tasks. However, the study also acknowledges limitations, such as fewer test runs for larger mazes and potential differences in implementation efficiency between the two technologies. Overall, WebAssembly appears better suited for tasks requiring high-performance execution, whereas Phaser remains a viable option for less demanding applications where ease of use and rapid development are prioritized. KW - Phaser KW - WebAssembly KW - Performance comparison KW - Experiment KW - Web game development CR - Midzic, N., & Novak, M. (2025). Performance comparison of WebAssembly and Phaser in procedural maze generation. The Eurasia Proceedings of Science, Technology, Engineering and Mathematics (EPSTEM), 34, 172-181. UR - https://doi.org/10.55549/epstem.1753850 L1 - https://dergipark.org.tr/en/download/article-file/5103422 ER -