I made a build visualizer to understand Bun's compile times

106 points - yesterday at 2:45 PM

Source

Comments

anaqin yesterday at 6:16 PM
Good write up! I was hoping it was going to conclude with the author getting buns zig build way faster than Rusts but a good deep dive nevertheless
xcc3641 today at 1:45 AM
Full LTO on the WebKit link is the serial part. Does your visualizer split link time from codegen?
t43562 yesterday at 7:00 PM
It's like Electric Insight, which was a fantastic if proprietary tool.

There's an enormous amount of analysis you can do with tools like this from estimating how much faster the build would be with more cores (i.e. is it worth adding more) to things like a diff of one build against another: why is one build bad and the other good - what tasks had different parameters or weren't in both builds?

flimflamm yesterday at 6:31 PM
It would be interesting to see what would be good input for LLMs to do the optimizations / trials on that automatically. Is the visual representation best or something else?
applfanboysbgon yesterday at 10:41 PM
Excellent write-up, love to see profiling work on compile times. I have some rudimentary tooling I threw together myself but nothing that looks as comprehensive and insightfully presented as this, I'll be giving it a try!