Published May 12, 2023 | Version v1
Journal article Open

CHOOSING THE RIGHT JAVASCRIPT RUNTIME: AN IN-DEPTH COMPARISON OF NODE.JS AND BUN

Authors/Creators

  • 1. Senior Software Engineer at June Homes Montreal, Canada
  • 2. Senior Software Engineer at Revolut Dubai, UAE

Description

Abstract

The constant evolution of JavaScript has led to a diverse ecosystem of runtime environments, each with unique features and capabilities designed to cater to specific development needs. This paper aims to provide an in-depth comparison of two such runtime environments: Node.js and Bun. The primary focus is to elucidate the key differences, benefits, and potential drawbacks of each, in terms of their architecture, performance, scalability, ecosystem, and use cases. The detailed analysis presented herein is expected to aid developers and tech-teams in making informed decisions when choosing the appropriate runtime for their JavaScript-based projects.

Notes

References: 1. Node.js Foundation. Node.js [Web resource], 2023. Access mode: https://nodejs.org/en/ (ac-cess date: 05.03.2023). 2. Bunjs. Bun [Web resource], 2023. Access mode: https://bun.sh/ (access date: 14.03.2023). 3. GitHub repository Node.js [Web resource], 2023. Access mode: https://github.com/nodejs/node (access date: 21.03.2023). 4. GitHub repository Bun [Web resource], 2023. Access mode: https://github.com/oven-sh/bun (access date: 27.03.2023). 5. Tilkov, S., & Vinoski, S. (2010). Node.js: Using JavaScript to Build High-Performance Net-work Programs. IEEE Internet Computing, 14(6), 80–83 (access date: 07.04.2023). 6. Haverbeke, M. (2014). Eloquent JavaScript: A Modern Introduction to Programming. No Starch Press (access date: 13.04.2023). 7. Cantelon, M., Harter, M., Holowaychuk, T., & Rajlich, N. (2013). Node.js in Action. Man-ning Publications (access date: 19.04.2023). 8. JavaScript Benchmark Suite [Web resource], 2023. Access mode: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ (access date: 23.04.2023). 9. MDN Web Docs: JavaScript [Web resource], 2023. Access mode: https://developer.mozilla.org/en-US/docs/Web/JavaScript (access date: 02.05.2023). 10. You Don't Know JS (book series) [Web resource], 2023. Access mode: https://github.com/getify/You-Dont-Know-JS (access date: 30.04.2023). 11. JavaScript.info [Web resource], 2023. Access mode: https://javascript.info/ (access date: 01.05.2023). 12. State of JS [Web resource], 2023. Access mode: https://stateofjs.com/en-us/ (access date: 03.05.2023). 13. V8 JavaScript Engine [Web resource], 2023. Access mode: https://v8.dev/ (access date: 03.05.2023).

Files

NJD_108-72-84.pdf

Files (982.5 kB)

Name Size Download all
md5:997f57a3a710331ca2ba5aed5d53e4ef
982.5 kB Preview Download