Skip to content

Slower than esbuild #6616

@sxzz

Description

@sxzz

Upstream issue: rolldown/tsdown#548

Reproduction: https://stackblitz.com/edit/stackblitz-starters-mlaczhfy
Run hyperfine 'node --run esbuild' 'node --run rolldown' --warmup 5

Here's the results on my machine:

Benchmark 1: node --run esbuild
  Time (mean ± σ):      39.9 ms ±   1.0 ms    [User: 75.0 ms, System: 23.1 ms]
  Range (min … max):    36.9 ms …  42.9 ms    69 runs
 
Benchmark 2: node --run rolldown
  Time (mean ± σ):     112.9 ms ±   2.6 ms    [User: 120.9 ms, System: 49.9 ms]
  Range (min … max):   109.5 ms … 123.4 ms    25 runs
 
Summary
  node --run esbuild ran
    2.83 ± 0.10 times faster than node --run rolldown

P.S Configuration of tsdown is totally different, tsdown is removed from the comparison.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions