#Is it beneficial for performance to `bun build`?
1 messages · Page 1 of 1 (latest)
for large projects, using bun build to minify everything into a single file will noticeably improve performance but for small single scripts the difference is negligible
My 1.2KB script turned into 82 MB executable
And performance difference was negligible
because bun includes its own executable inside it
So it doesn't compile it down to machine code?
Like go executable was like 6MB
That's a huge difference
the compile option basically just bundles the script and appends it to the bun executable
Although I don't mind 82MB i just don't like bun used a lot of memory even when it is running an idle server
I just run it directly