
TL;DR
Cruller is a streamlined fork of Bun, designed to run pre-built JavaScript servers using Zig 0.16, achieving an 18% reduction in runtime size while maintaining performance parity.
✦ Why It Matters
Consider using Cruller for lightweight JavaScript server deployments to reduce runtime size and maintain performance.
Key Takeaways
Full Summary
Cruller is a fork of Bun, a JavaScript runtime, specifically tailored to run pre-built production JavaScript servers using vanilla Zig 0.16. It retains essential features like JavaScriptCore, HTTP support, and WebSockets, while removing development-oriented components such as the package manager and test runner.
The project successfully separates the runtime from Bun's previous integration with a patched Zig build, resulting in a more portable release. Current benchmarks show Cruller has a runtime size of 73.0 MiB compared to Bun's 88.5 MiB, marking an 18% reduction.
Performance tests indicate that Cruller performs on par with Bun, with a slight edge in some benchmarks. Although still in progress, key functionalities like Zig semantic checks and HTTP serving are operational.
Related