Comperative analasys of JavaScript runtime environments

Main Article Content

DOI

Konrad Kalman

konrad.kalman@pollub.edu.pl

https://orcid.org/0009-0006-6884-1262
Marek Miłosz

m.milosz@pollub.pl

https://orcid.org/0000-0002-5898-815X

Abstract

This article presents a comparative analysis of two JavaScript runtime environments: Node.js, the industry leader since 2009, and Bun, a newer and promising alternative introduced in 2022. The study evaluates their performance in two distinct experimental scenarios: handling HTTP requests and executing a computationally intensive algorithm for calculating Fibonacci numbers. These scenarios allow for the assessment of both I/O-bound and CPU-bound workloads. Benchmarking tools were used to measure the most important metrics, including total request handling time, average latency, and peak memory usage. By analyzing architectural differences and runtime optimizations, the article highlights the advantages and trade-offs of both environments. The findings offer developers valuable insights for selecting an appropriate platform for high-performance and scalable server-side applications, and contribute to the ongoing discussion on the evolution of JavaScript runtimes.

Keywords:

JavaScript runtime environments, Node.js, Bun, HTTP handling, memory usage analysis

References

Article Details

Kalman, K., & Miłosz, M. (2025). Comperative analasys of JavaScript runtime environments. Journal of Computer Sciences Institute, 36, 296–302. https://doi.org/10.35784/jcsi.7512