Hacker News new | ask | show | jobs
by Spivak 1127 days ago
I feel like using Graal for the comparison is cheating a bit because it's so fundamentally different from what bun is doing. You need to compare it to tools that ship class files and a JVM, or something like PyInstaller which will have much much more overhead.
3 comments

I wouldn’t call it cheating.

I’d also compare against stripped Rust binaries statically linked against musl.

PyInstaller actually seems to have less overhead, in terms of space, not "much much more". Building a hello world script with "pyinstaller --onefile" gives me a 5.6 MB executable on Linux or 4.9 MB on Windows.
A leaned up JRE (only containing the base jdk classes) and an included hello world is 47.2MB.