Test: bun fmt checks Prettier's repo about 280 times faster than Prettier
Bun 1.4.4's built-in bun fmt checked Prettier's source tree in 0.10–0.15s versus 36.77s for Prettier, roughly 283 times faster. Both tools found no formatting errors across 2,623 files, but bun fmt silently substitutes native reimplementations for some Prettier plugins without checking whether they are installed.
- bun fmt --check: 0.10–0.15s and 48 MB peak RSS vs 36.77s and 520 MB for Prettier
- 2,623 files checked; neither tool flagged any formatting errors
- bun fmt ran its own prettier-plugin-organize-imports replacement though the package was not installed
- With an unknown plugin, bun fmt errors out and skips formatting
Read next
Software