-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bun migration (Performance improvement) #36
base: main
Are you sure you want to change the base?
Conversation
I have made a mistake in my previous benchmarks. I was (by mistake) using tsx instead of executing natively with bun. Another advantage is that bun can run typescript with no middle man. There is an even larger performance improvement, but I don't feel the need to test everything again (Although I have run 1 test and the results are even more shockingly optimized) |
I strongly disapprove of Buntallic because my friend made it |
Is there a reason you don't like it? How can I improve this project before it gets merged? Could you give more feedback, please! |
Yes there is a reason I don't like it, the reason I don't like it is because you are the lucky charms mascot. |
I apologize for my friend. I am trying to take this seriously, and hope it will still get merged. |
nerd |
I have migrated a few core things (packages, tests, scripts, etc) to bun, and everything works as intended. I have noticed performance improvements between the past version and the bun version, and I hope you will consider merging this pull request. I have subsequently updated the instructions in the README file.
Performance improvements:
Tests: Up to ~35x improvement
Bun performance
PNPM performance
Raw increase:
Please note that there is an extra test for Bun, so this is not the full extent of optimization
Builds: Up to ~1.76x improvement
Bun performance
PNPM performance
Raw increase:
Starting server: Up to ~70x increase
Bun Performance
PNPM performance
Raw performance:
Lighthouse report: Score increase of 20
Bun performance
PNPM performance
Raw performance:
Network loading time: Up to ~1.85x increase
Bun performance
PNPM performance
Raw performance:
These tests were run on the same computer, on the same internet connection, in the same place, with the same host OS and version. The only things that are different are package versions and the Bun migrations. I once again hope that you will consider these changes and merge them into the repository.
Addresses #35