Build Tools Comparison

April 23, 2026 · View on GitHub

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

Metrics

NameDescription
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
HMRTime 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 (RSS)Memory usage at the end of a cold start or production build
Output sizeTotal size of the output bundle, minified with the default minifier
Gzipped sizeGzipped size of the output bundle, represents actual network transfer size

Notes

  • Build target is set to es2022 (Chrome >= 93) for all tools.
  • 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.

Results

Data from GitHub Actions: https://github.com/rstackjs/build-tools-performance/actions/runs/24771343987 (2026-04-22)


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

Development metrics:

NameStartup (no cache)Startup (with cache)HMRMemory (RSS)
Rspack CLI 2.0.01394ms🥇930ms🥇146ms🥉350MB🥈
Rsbuild 2.0.01562ms🥈998ms🥈166ms324MB🥇
Vite 8.0.97111ms5206ms89ms🥇509MB🥉
webpack 5.106.27541ms4288ms755ms858MB
Farm 1.7.112122ms🥉1003ms🥉137ms🥈550MB
Parcel 2.16.45050ms1257ms361ms1093MB

Build metrics:

NameBuild (no cache)Build (with cache)Memory (RSS)Output sizeGzipped size
Rspack CLI 2.0.0993ms🥉514ms🥇282MB🥇846.2kB🥈222.0kB
Rsbuild 2.0.0862ms🥈556ms🥈289MB🥈873.5kB215.3kB🥇
Vite 8.0.9624ms🥇703ms🥉302MB🥉823.8kB🥇218.0kB🥈
webpack 5.106.26538ms1956ms697MB846.5kB🥉221.9kB🥉
Farm 1.7.112346ms1262ms397MB1089.7kB256.8kB
Parcel 2.16.44770ms1038ms1106MB966.2kB231.0kB

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

Development metrics:

NameStartup (no cache)Startup (with cache)HMRMemory (RSS)
Rspack CLI 2.0.0745ms🥇607ms🥉106ms🥇288MB🥈
Rsbuild 2.0.0750ms🥈547ms🥇126ms🥉268MB🥇
Vite 8.0.93318ms2108ms114ms🥈754MB
webpack 5.106.28246ms8706ms1209ms1573MB
Farm 1.7.111102ms🥉597ms🥈142ms514MB🥉
Parcel 2.16.48904ms1108ms433ms1795MB

Build metrics:

NameBuild (no cache)Build (with cache)Memory (RSS)Output sizeGzipped size
Rspack CLI 2.0.01592ms🥉855ms🥈636MB🥈2825.6kB🥈680.1kB🥈
Rsbuild 2.0.01511ms🥈811ms🥇648MB🥉2852.2kB680.2kB🥉
Vite 8.0.9984ms🥇1003ms🥉692MB2630.9kB🥇693.0kB
webpack 5.106.29457ms2569ms1238MB2826.0kB🥉679.4kB🥇
Farm 1.7.113911ms1676ms614MB🥇3545.1kB798.5kB
Parcel 2.16.48583ms1511ms1973MB3489.6kB766.6kB

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

Development metrics:

NameStartup (no cache)Startup (with cache)HMRMemory (RSS)
Rspack CLI 2.0.01862ms🥇1284ms🥇166ms🥈355MB🥈
Rsbuild 2.0.01906ms🥈1623ms🥈231ms🥉324MB🥇
Vite 8.0.911149ms🥉6885ms🥉130ms🥇1158MB🥉
webpack 5.106.233407ms30613ms7920ms2204MB

Build metrics:

NameBuild (no cache)Build (with cache)Memory (RSS)Output sizeGzipped size
Rspack CLI 2.0.08310ms🥉2387ms🥇1141MB🥇5934.1kB🥈1368.6kB🥉
Rsbuild 2.0.06464ms🥈2639ms🥈1153MB🥈5984.5kB1367.5kB🥇
Vite 8.0.93327ms🥇3198ms🥉1250MB🥉5465.7kB🥇1417.1kB
webpack 5.106.247639ms8575ms1836MB5934.5kB🥉1367.9kB🥈

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

Build metrics:

NameBuild (no cache)Build (with cache)Memory (RSS)Output sizeGzipped size
Rspack CLI 2.0.06587ms🥈2377ms🥇1396MB🥇5009.3kB🥇1436.9kB🥇
Rsbuild 2.0.08315ms3543ms🥉1506MB🥈5009.3kB🥈1437.0kB🥈
Vite 8.0.97463ms🥉5279ms1672MB🥉5018.3kB1444.3kB
webpack 5.106.237688ms22247ms2252MB5012.8kB🥉1438.8kB🥉
esbuild 0.28.05783ms🥇4934msN/A6146.4kB1775.4kB
Farm 1.7.1116791ms5267ms2193MB7962.8kB2689.5kB
Parcel 2.16.433749ms2924ms🥈2393MB5273.3kB1479.2kB

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

Build metrics:

NameBuild (no cache)Build (with cache)Memory (RSS)Output sizeGzipped size
Rspack CLI 2.0.02579ms970ms🥇438MB🥇1781.4kB556.8kB🥉
Rsbuild 2.0.03042ms2827ms444MB🥈1780.5kB556.5kB🥈
Vite 8.0.92002ms🥉1667ms655MB1779.6kB🥉558.5kB
Rollup 4.60.214048ms13186ms1273MB1612.8kB🥇500.7kB🥇
Rolldown 1.0.0-rc.161587ms🥇1390ms🥉588MB🥉1777.6kB🥈557.0kB
webpack 5.106.216044ms4050ms1336MB1789.3kB557.9kB
esbuild 0.28.01769ms🥈1086ms🥈N/A2076.6kB628.5kB
Farm 1.7.116671ms2203ms766MB2247.9kB761.1kB

rome

A complex TypeScript Node.js project that includes multiple packages from the rome toolchain.

CASE=rome pnpm benchmark

Build metrics:

NameBuild (no cache)Build (with cache)Memory (RSS)Output sizeGzipped size
Rspack CLI 2.0.01223ms🥉324ms🥈296MB🥉1704.6kB358.1kB
Rsbuild 2.0.01314ms488ms245MB🥈1008.1kB🥇271.0kB🥇
Rolldown 1.0.0-rc.16431ms🥈411ms🥉223MB🥇1012.2kB🥈271.8kB🥈
webpack 5.106.24655ms1358ms624MB1044.2kB275.7kB🥉
esbuild 0.28.0303ms🥇279ms🥇N/A1025.2kB🥉276.7kB

Run locally

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!