Advanced
Varun Srinivasan@varunsrin.eth
9/12/2023

Did some benchmarks with Bun on the Hubble codebase. The tl;dr is that it made a huge improvement to package install speed, but no material changes to building or test running. Benchmark 1: Installing packages with a lockfile in offline mode Bun is 8x faster

In reply to @varunsrin.eth
Varun Srinivasan@varunsrin.eth
9/12/2023

Benchmark 2: Building the project without cache A good chunk of this step is typescript and rust compilation, so expected that bun made little to no difference Bun is the same as yarn

In reply to @varunsrin.eth
jcdenton.beb@jc
9/12/2023

Heads up, when I tried Bun with @farcaster/hub-nodejs this morning, the grpc dependency threw a string exception error, but on node it’s fine. Glad to see Bun being tested, would save tons of CPU on AWS if benchmarks are accurate

In reply to @varunsrin.eth
9/12/2023

Thanks for sharing. A nice bench for the build part would also be using bun's bundler vs esbuild (what you're using currently through tsup) https://bun.sh/docs/bundler