Skip to content

About

Benchmarks for bundlers and build tools, including Rspack, Rsbuild, webpack, Vite, Rolldown, esbuild, Parcel, Bun, Farm and Utoo.

Topics

Resources

Stars

122 stars

Watchers

8 watching

Forks

Repository files navigation

Build Tools Comparison

Benchmark comparing JavaScript bundlers and build tools (Rspack, Rsbuild, webpack, Vite, Rolldown, esbuild, Rollup, Parcel, Farm, Utoo and Bun) for dev server startup time, build performance and bundle size for applications with different module sizes.

Results

See metrics and notes for details.

Data from GitHub Actions (2026-11-30 UTC+8, benchmark commit e70d01cb). Memory uses macOS process-tree physical footprint.


react-dashboard

A synthetic enterprise operations dashboard with 60 lazy routes across 8 business domains, CSS Modules, and 37 common libraries, including React, TanStack Router, Zod, and Recharts.

See case details.

CASE=react-dashboard pnpm benchmark
react-dashboard
Full benchmark data

Development metrics:

Name Startup (no cache) Startup (with cache) HMR
Rspack CLI 2.3.2 2439ms🥇 1657ms🥇 101ms🥈
Rsbuild 2.3.2 2778ms🥈 2184ms🥉 103ms🥉
Vite 8.3.8 10052ms 2702ms 134ms
webpack 5.112.2 10873ms 4461ms 492ms
Utoo 1.6.4 6066ms🥉 2176ms🥈 91ms🥇

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.2 8969ms🥉 3405ms🥇 8535.7kB🥈 1074.3kB
Rsbuild 2.3.2 7839ms🥈 3651ms🥈 8787.0kB 1093.2kB
Vite 8.3.8 5253ms🥇 4800ms 8648.2kB 1040.8kB🥈
webpack 5.112.2 57415ms 16488ms 8508.1kB🥇 1070.5kB🥉
Utoo 1.6.4 33493ms 4508ms🥉 8582.0kB🥉 929.0kB🥇

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 304.0🥈 624.9 362.3🥇 641.6
Rsbuild 2.3.2 314.0🥉 617.3🥉 378.5🥈 620.2🥉
Vite 8.3.8 1614.0 268.8🥈 1856.5 275.9🥈
webpack 5.112.2 794.6 734.4 970.0 834.0
Utoo 1.6.4 245.6🥇 265.0🥇 549.9🥉 267.0🥇

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 1392.9🥇 1294.9🥈
Rsbuild 2.3.2 1425.1🥈 1365.2🥉
Vite 8.3.8 1971.3🥉 1970.9
webpack 5.112.2 3160.6 2494.9
Utoo 1.6.4 2264.3 488.4🥇

react-1k

A React app with 1,000 components and 1,500 modules from node_modules, using dynamic imports to simulate SPA.

CASE=react-1k pnpm benchmark
react-1k
Full benchmark data

Development metrics:

Name Startup (no cache) Startup (with cache) HMR
Rspack CLI 2.3.2 1333ms 1350ms 93ms🥉
Rsbuild 2.3.2 1253ms🥉 958ms🥈 103ms
Vite 8.3.8 5735ms 4664ms 133ms
webpack 5.112.2 6195ms 5797ms 414ms
Farm 1.7.11 1880ms 1040ms🥉 148ms
Parcel 3.0.0-alpha.5 1098ms🥈 917ms🥇 180ms
Utoo 1.6.4 3598ms 1566ms 68ms🥈
Bun 1.4.5 921ms🥇 1352ms 7ms🥇

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.2 654ms 333ms🥈 847.4kB 229.3kB🥉
Rsbuild 2.3.2 863ms 389ms🥉 845.2kB🥉 221.0kB🥇
Vite 8.3.8 550ms🥉 613ms 825.8kB🥈 226.2kB🥈
webpack 5.112.2 5854ms 1515ms 847.3kB 230.3kB
Farm 1.7.11 2091ms 1102ms 1094.9kB 266.6kB
Parcel 3.0.0-alpha.5 377ms🥈 430ms 1068.7kB 249.2kB
Utoo 1.6.4 3981ms 537ms 851.3kB 240.2kB
Bun 1.4.5 342ms🥇 222ms🥇 822.1kB🥇 240.6kB

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 236.4 264.8 251.7 279.0
Rsbuild 2.3.2 221.9 227.4 226.2🥉 235.1
Vite 8.3.8 425.8 277.0 426.3 290.6
webpack 5.112.2 682.8 723.8 841.1 781.1
Farm 1.7.11 355.0 312.5 368.2 312.5
Parcel 3.0.0-alpha.5 58.5🥈 61.3🥈 66.7🥇 66.6🥇
Utoo 1.6.4 136.9🥉 181.0🥉 390.0 181.0🥉
Bun 1.4.5 50.8🥇 51.1🥇 139.9🥈 140.2🥈

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 185.2🥉 160.0
Rsbuild 2.3.2 188.9 159.9
Vite 8.3.8 242.8 241.8
webpack 5.112.2 587.3 428.4
Farm 1.7.11 284.5 259.6
Parcel 3.0.0-alpha.5 69.2🥇 69.2🥇
Utoo 1.6.4 336.5 134.6🥉
Bun 1.4.5 89.0🥈 83.3🥈

react-5k

A React app with 5,000 components and 5,000 modules from node_modules, using dynamic imports to simulate SPA.

CASE=react-5k pnpm benchmark
react-5k
Full benchmark data

Development metrics:

Name Startup (no cache) Startup (with cache) HMR
Rspack CLI 2.3.2 1064ms🥉 1072ms 95ms🥈
Rsbuild 2.3.2 1062ms🥈 751ms🥇 87ms🥇
Vite 8.3.8 3031ms 1922ms 142ms
webpack 5.112.2 11131ms 7848ms 1015ms
Farm 1.7.11 1638ms 995ms🥈 104ms🥉
Parcel 3.0.0-alpha.5 982ms🥇 1055ms🥉 173ms

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.2 2014ms 694ms🥈 2707.7kB🥉 682.4kB🥉
Rsbuild 2.3.2 1445ms🥉 814ms🥉 2637.8kB🥈 675.6kB🥇
Vite 8.3.8 1178ms🥈 1037ms 2541.9kB🥇 693.8kB
webpack 5.112.2 11434ms 3533ms 2710.7kB 682.2kB🥈
Farm 1.7.11 5464ms 2033ms 3459.4kB 803.2kB
Parcel 3.0.0-alpha.5 708ms🥇 529ms🥇 3559.5kB 789.9kB

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 196.9🥉 197.9🥉 223.5🥉 203.9🥉
Rsbuild 2.3.2 173.4🥈 190.7🥈 178.8🥈 190.7🥈
Vite 8.3.8 659.5 238.8 696.5 238.8
webpack 5.112.2 1890.5 927.4 1900.5 1911.7
Farm 1.7.11 348.0 318.6 353.0 325.3
Parcel 3.0.0-alpha.5 103.1🥇 103.6🥇 110.2🥇 105.8🥇

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 420.2🥈 401.1
Rsbuild 2.3.2 440.1 370.4🥈
Vite 8.3.8 616.3 629.9
webpack 5.112.2 1143.1 928.7
Farm 1.7.11 428.1🥉 376.7🥉
Parcel 3.0.0-alpha.5 160.2🥇 159.3🥇

react-10k

A React app with 10,000 components and 10,000 modules from node_modules, using dynamic imports to simulate SPA.

CASE=react-10k pnpm benchmark
react-10k
Full benchmark data

Development metrics:

Name Startup (no cache) Startup (with cache) HMR
Rspack CLI 2.3.2 1573ms🥈 1145ms🥇 98ms🥇
Rsbuild 2.3.2 1400ms🥇 1223ms🥈 106ms🥈
Vite 8.3.8 9846ms🥉 6127ms🥉 141ms🥉
webpack 5.112.2 25503ms 20306ms 2815ms

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.2 3043ms🥉 1367ms🥇 5630.6kB🥉 1361.1kB🥈
Rsbuild 2.3.2 2976ms🥈 1681ms🥈 5452.6kB🥈 1337.3kB🥇
Vite 8.3.8 2962ms🥇 2568ms🥉 5232.5kB🥇 1407.5kB
webpack 5.112.2 29072ms 6811ms 5638.2kB 1361.1kB🥉

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 227.5🥈 263.4🥈 231.7🥈 264.2🥈
Rsbuild 2.3.2 213.2🥇 228.4🥇 217.0🥇 228.4🥇
Vite 8.3.8 1077.8🥉 283.7🥉 1101.0🥉 283.7🥉
webpack 5.112.2 2832.0 2660.5 2997.4 2788.2

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 773.8🥇 730.8🥈
Rsbuild 2.3.2 778.3🥈 662.2🥇
Vite 8.3.8 1171.2🥉 1167.3🥉
webpack 5.112.2 1803.9 1489.2

ui-components

A React app that imports UI components from several popular UI libraries.

Including @mui/material, @radix-ui/themes, antd, antd-mobile, @chakra-ui/react, @fluentui/react, @headlessui/react, @mantine/core, react-bootstrap, primereact, rsuite, @arco-design/web-react, @coreui/react, element-plus, ant-design-vue, naive-ui, primevue, vant, and vuetify.

CASE=ui-components pnpm benchmark
ui-components
Full benchmark data

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.2 5966ms🥈 1416ms🥇 4961.5kB🥈 1442.7kB🥈
Rsbuild 2.3.2 6645ms🥉 2234ms🥉 4961.3kB🥇 1442.1kB🥇
Vite 8.3.8 5350ms🥇 5793ms 4963.0kB🥉 1448.9kB
webpack 5.112.2 25453ms 10815ms 4974.9kB 1443.9kB🥉
esbuild 0.28.2 8105ms 7521ms 6178.5kB 1798.4kB
Farm 1.7.11 22031ms 6932ms 8510.5kB 2907.9kB
Utoo 1.6.4 18077ms 1559ms🥈 5006.5kB 1456.3kB

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 1061.2🥇 1240.9🥈
Rsbuild 2.3.2 1166.7🥉 1275.4🥉
Vite 8.3.8 1784.7 1794.7
webpack 5.112.2 1778.8 1443.5
esbuild 0.28.2 1363.3 1374.1
Farm 1.7.11 1658.7 1386.8
Utoo 1.6.4 1089.0🥈 246.6🥇

popular-libs

A browser app that imports a small number of live exports from 50 popular, modern frontend libraries to compare tree-shaking quality across bundlers.

It keeps the original React/Vue/state/data set and adds 30 more mainstream frontend packages with ESM-friendly entry points where practical, including axios, dayjs, clsx, tailwind-merge, class-variance-authority, i18next, react-i18next, vue-i18n, immer, swr, framer-motion, three, lucide-react, @headlessui/react, @headlessui/vue, @heroicons/react, @heroicons/vue, @radix-ui/react-slot, query-string, mitt, fuse.js, idb, dexie, ky, lit, xstate, preact, solid-js, swiper, and remeda.

CASE=popular-libs pnpm benchmark
popular-libs
Full benchmark data

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.2 1985ms 502ms🥇 1830.4kB 557.3kB🥉
Rsbuild 2.3.2 2248ms 889ms 1830.0kB🥉 557.2kB🥈
Vite 8.3.8 1910ms🥉 1792ms 1826.0kB🥈 558.2kB
Rollup 4.68.3 13925ms 13362ms 1770.7kB🥇 545.4kB🥇
Rolldown 1.3.2 1143ms🥈 995ms 1857.4kB 561.2kB
webpack 5.112.2 7883ms 1523ms 1850.1kB 565.6kB
esbuild 0.28.2 2130ms 1100ms 2147.7kB 631.6kB
Farm 1.7.11 6838ms 1850ms 2326.6kB 778.6kB
Utoo 1.6.4 4756ms 561ms🥈 1889.0kB 577.8kB
Parcel 3.0.0-alpha.5 841ms🥇 760ms🥉 2454.0kB 706.2kB

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.2 364.7🥈 531.7
Rsbuild 2.3.2 371.2🥉 530.5
Vite 8.3.8 553.0 536.7
Rollup 4.68.3 1143.9 1158.9
Rolldown 1.3.2 530.3 539.6
webpack 5.112.2 755.1 414.2
esbuild 0.28.2 457.5 407.2🥉
Farm 1.7.11 586.1 514.9
Utoo 1.6.4 422.1 128.3🥇
Parcel 3.0.0-alpha.5 188.3🥇 188.2🥈

Metrics

Name Description
Startup (no cache) Time from starting the dev server to page loaded
Startup (with cache) Time from starting the dev server to page loaded with cache
HMR Time to HMR after changing a module
Build (no cache) Time taken to build the production bundles
Build (with cache) Time taken to build the production bundles with cache
Memory steady Dev server memory after 10 HMR updates and a fixed idle window, with and without cache
Memory peak Sampled peak memory during dev or a production build, with and without cache
Output size Total size of the output bundle, minified with the configured minifier
Gzipped size Gzipped size of the output bundle, represents actual network transfer size

Notes

  • Build targets are Chrome >= 93 or es2022.
  • Minification is enabled in production for all tools.
  • Source map is enabled in development and disabled in production for all tools.
  • Benchmarks run on GitHub Actions with variable hardware, which may cause inconsistent results.

Tooling details:

  • webpack is configured to use SWC instead of Babel / Terser.
  • Vite uses Rolldown and Oxc.

Run locally

To regenerate the charts from the current README tables without running benchmarks:

pnpm charts

Run the benchmark.ts script to get the results (requires Node.js >= 22):

# Run the benchmark for the react-5k case
pnpm benchmark

# Run the benchmark for the react-10k case
CASE=react-10k pnpm benchmark

If you want to start the project with the specified tool, try:

pnpm i # install dependencies

# Cd to the case directory
cd cases/react-5k
cd cases/react-10k
cd cases/popular-libs

# Dev server
pnpm start:rspack # Start Rspack
pnpm start:rsbuild # Start Rsbuild
pnpm start:webpack # Start webpack
pnpm start:vite # Start Vite
pnpm start:farm # Start Farm

# Build
pnpm build:rspack # Build Rspack
pnpm build:rsbuild # Build Rsbuild
pnpm build:webpack # Build webpack
pnpm build:vite # Build Vite
pnpm build:farm # Build Farm

Options

Use CASE to switch the benchmark case:

CASE=react-1k pnpm benchmark
CASE=react-5k pnpm benchmark
CASE=react-10k pnpm benchmark
CASE=popular-libs pnpm benchmark

Use TOOLS to specify the build tools or bundlers:

# Run with all tools
TOOLS=all pnpm benchmark

# Run Rspack and Rsbuild
TOOLS=rspack,rsbuild pnpm benchmark

Use RUN_TIMES to specify the number of runs (defaults to 3):

RUN_TIMES=3 pnpm benchmark

Use WARMUP_TIMES to specify the number of warmup runs (defaults to 2):

WARMUP_TIMES=2 pnpm benchmark

Use FARM=true to run Farm:

FARM=true pnpm benchmark

Credits

Forked from farm-fe/performance-compare, thanks to the Farm team!

Memory methodology

  • Sample the command process tree every ~50 ms, excluding the browser and benchmark driver. Use macOS physical footprint (requires Xcode Command Line Tools) or Linux RSS; these metrics are not comparable across platforms.
  • Measure timing and memory in separate passes, each with cold/warm caches and natural GC.
  • Dev steady: load /, perform 10 root/leaf HMR updates, then idle for 5 seconds and take the median over 2 seconds. Peak: the largest sampled process-tree total during dev startup through this window, or during a build.
  • Report MiB as the median across runs. Raw samples and summaries are saved in results/ and uploaded as CI artifacts.

About

Benchmarks for bundlers and build tools, including Rspack, Rsbuild, webpack, Vite, Rolldown, esbuild, Parcel, Bun, Farm and Utoo.

Topics

Resources

Stars

122 stars

Watchers

8 watching

Forks

Used by

Contributors

Languages