Calculation of Fibonacci(40) with a recursive algorithm. (Time in seconds)
Bun was faster for recursive Fibonacci calculation. It was about 1.62 times faster than Node.js.
This project aims to compare the performance of Bun and Node.js across various aspects. There are benchmarks for different scenarios, including simple loops, recursive functions, reading/writing large files and too many small files, as a HTTP server and as a package manager.
For more details, visit the GitHub repository.