Skip to content

Bun is slower than deno in bun's install benchmark #24265

@itea-dev

Description

@itea-dev

Adding deno to buns install benchmark on bun's repo and running it I see that deno is the fastest package manager.

https://github.com/oven-sh/bun/tree/main/bench/install

cd bun/bench/install/
➤ hyperfine --prepare 'rm -rf node_modules' --warmup 1 --runs 3 'bun install' 'pnpm install' 'yarn' 'npm install' 'deno install' 
Benchmark 1: bun install
  Time (mean ± σ):     391.0 ms ±  45.1 ms    [User: 102.0 ms, System: 368.9 ms]
  Range (min … max):   358.2 ms … 442.3 ms    3 runs
 
Benchmark 2: pnpm install
  Time (mean ± σ):      1.023 s ±  0.011 s    [User: 2.547 s, System: 1.081 s]
  Range (min … max):    1.014 s …  1.035 s    3 runs
 
Benchmark 3: yarn
  Time (mean ± σ):      3.206 s ±  0.033 s    [User: 3.595 s, System: 2.826 s]
  Range (min … max):    3.172 s …  3.238 s    3 runs
 
Benchmark 4: npm install
  Time (mean ± σ):      4.503 s ±  0.010 s    [User: 5.246 s, System: 2.567 s]
  Range (min … max):    4.494 s …  4.514 s    3 runs
 
Benchmark 5: deno install
  Time (mean ± σ):     222.0 ms ±   7.5 ms    [User: 208.3 ms, System: 575.5 ms]
  Range (min … max):   215.7 ms … 230.3 ms    3 runs
 
Summary
  deno install ran
    1.76 ± 0.21 times faster than bun install
    4.61 ± 0.16 times faster than pnpm install
   14.44 ± 0.51 times faster than yarn
   20.28 ± 0.69 times faster than npm install

Versions:
Deno: 2.5.6
Bun: 1.3.1+89fa0f343
Pnpm: 10.20.0
Yarn: 1.22.22
Npm: 11.6.2

System: Ubuntu 25.10 - Linux 6.17.5-061705-generic x86_64 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingperformanceAn issue with performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions