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

123 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-12-03 UTC+8, benchmark commit daf190a0). 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.5 2748ms🥇 2028ms🥇 115ms🥈
Rsbuild 2.3.7 3538ms🥈 2241ms🥈 118ms🥉
Vite 8.3.8 10802ms 2969ms 127ms
webpack 5.112.2 11257ms 7388ms 573ms
Utoo 1.6.12 5908ms 2571ms🥉 85ms🥇
Parcel 3.0.0-alpha.5 4377ms🥉 4436ms 283ms

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.5 7921ms🥉 3479ms🥈 8695.5kB🥈 1123.7kB
Rsbuild 2.3.7 8928ms 3683ms🥉 8773.8kB 1117.8kB🥉
Vite 8.3.8 5635ms🥈 4799ms 8699.9kB 1064.7kB🥈
webpack 5.112.2 70185ms 23549ms 8662.4kB🥇 1120.5kB
Utoo 1.6.12 37141ms 3197ms🥇 8697.3kB🥉 981.9kB🥇
Parcel 3.0.0-alpha.5 3920ms🥇 3782ms 12390.4kB 1127.1kB

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 297.9🥉 286.1 365.3🥈 304.1
Rsbuild 2.3.7 311.0 282.8 375.1🥉 288.8🥉
Vite 8.3.8 1566.9 279.8🥉 1820.6 292.0
webpack 5.112.2 742.1 680.1 849.0 796.3
Utoo 1.6.12 189.4🥇 264.9🥇 523.6 270.1🥇
Parcel 3.0.0-alpha.5 268.1🥈 274.1🥈 268.6🥇 274.1🥈

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 1366.5🥉 726.1🥉
Rsbuild 2.3.7 1335.5🥈 737.2
Vite 8.3.8 1999.5 1991.4
webpack 5.112.2 3288.9 2423.1
Utoo 1.6.12 2088.9 503.7🥇
Parcel 3.0.0-alpha.5 620.0🥇 616.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.5 2244ms 1561ms 113ms
Rsbuild 2.3.7 1479ms🥉 1298ms 134ms
Vite 8.3.8 7458ms 6288ms 142ms
webpack 5.112.2 5166ms 4295ms 393ms
Farm 1.7.11 2112ms 1173ms🥉 109ms🥉
Parcel 3.0.0-alpha.5 1013ms🥇 695ms🥇 152ms
Utoo 1.6.12 4037ms 1619ms 81ms🥈
Bun 1.4.5 1118ms🥈 867ms🥈 9ms🥇

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.5 685ms🥉 229ms🥇 847.1kB 229.2kB🥉
Rsbuild 2.3.7 990ms 504ms 846.5kB🥉 221.5kB🥇
Vite 8.3.8 747ms 600ms 825.8kB🥈 226.2kB🥈
webpack 5.112.2 5688ms 1605ms 847.3kB 230.3kB
Farm 1.7.11 1992ms 1055ms 1094.9kB 266.6kB
Parcel 3.0.0-alpha.5 289ms🥈 291ms🥉 1068.7kB 249.2kB
Utoo 1.6.12 3640ms 522ms 867.3kB 243.9kB
Bun 1.4.5 237ms🥇 237ms🥈 822.1kB🥇 240.6kB

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 230.5 220.3 236.1 242.2
Rsbuild 2.3.7 222.8 213.6 222.8🥉 214.5
Vite 8.3.8 425.9 288.3 428.9 294.4
webpack 5.112.2 677.7 712.7 845.1 787.1
Farm 1.7.11 344.9 305.2 368.3 311.7
Parcel 3.0.0-alpha.5 61.9🥈 59.9🥈 68.4🥇 66.3🥇
Utoo 1.6.12 127.8🥉 184.2🥉 378.9 184.4🥉
Bun 1.4.5 50.6🥇 51.1🥇 137.5🥈 124.6🥈

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 184.9 125.9
Rsbuild 2.3.7 179.7🥉 139.0
Vite 8.3.8 243.6 242.6
webpack 5.112.2 561.8 429.6
Farm 1.7.11 283.5 260.4
Parcel 3.0.0-alpha.5 68.0🥇 69.1🥇
Utoo 1.6.12 305.7 123.6🥉
Bun 1.4.5 97.7🥈 85.1🥈

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.5 1153ms🥉 913ms🥇 86ms🥇
Rsbuild 2.3.7 1097ms🥈 1000ms🥈 102ms🥉
Vite 8.3.8 3021ms 2479ms 130ms
webpack 5.112.2 11174ms 9667ms 1164ms
Farm 1.7.11 2194ms 1054ms🥉 98ms🥈
Parcel 3.0.0-alpha.5 1033ms🥇 1295ms 197ms

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.5 1809ms🥉 699ms🥈 2707.4kB🥉 682.3kB🥉
Rsbuild 2.3.7 2143ms 926ms🥉 2639.1kB🥈 676.0kB🥇
Vite 8.3.8 1246ms🥈 1098ms 2541.9kB🥇 693.8kB
webpack 5.112.2 12252ms 3809ms 2710.7kB 682.2kB🥈
Farm 1.7.11 7136ms 2264ms 3459.4kB 803.2kB
Parcel 3.0.0-alpha.5 657ms🥇 615ms🥇 3559.5kB 789.9kB

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 187.2🥉 178.0🥉 197.0🥉 182.9🥉
Rsbuild 2.3.7 166.9🥈 163.1🥈 169.1🥈 164.0🥈
Vite 8.3.8 673.4 240.4 695.3 240.4
webpack 5.112.2 1855.3 1638.7 1876.9 1754.0
Farm 1.7.11 351.1 324.6 361.3 325.3
Parcel 3.0.0-alpha.5 103.2🥇 99.5🥇 107.8🥇 105.4🥇

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 401.7🥈 248.7🥈
Rsbuild 2.3.7 406.5🥉 268.3🥉
Vite 8.3.8 622.2 633.9
webpack 5.112.2 1136.3 926.2
Farm 1.7.11 423.6 379.1
Parcel 3.0.0-alpha.5 160.1🥇 159.9🥇

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.5 1554ms🥈 1258ms🥇 103ms🥇
Rsbuild 2.3.7 1518ms🥇 1488ms🥈 104ms🥈
Vite 8.3.8 6211ms🥉 5378ms🥉 140ms🥉
webpack 5.112.2 21589ms 17221ms 3003ms

Build metrics:

Name Build (no cache) Build (with cache) Output size Gzipped size
Rspack CLI 2.3.5 3525ms🥉 1887ms🥈 5630.3kB🥉 1361.0kB🥈
Rsbuild 2.3.7 3489ms🥈 1705ms🥇 5454.0kB🥈 1337.8kB🥇
Vite 8.3.8 2215ms🥇 1896ms🥉 5232.5kB🥇 1407.5kB
webpack 5.112.2 23894ms 6215ms 5638.2kB 1361.1kB🥉

Dev memory (MiB):

Name Steady (no cache) Steady (with cache) Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 230.5🥈 227.5🥈 272.8🥈 267.4🥈
Rsbuild 2.3.7 211.7🥇 212.3🥇 216.5🥇 212.7🥇
Vite 8.3.8 1104.2🥉 278.4🥉 1125.9🥉 278.5🥉
webpack 5.112.2 2794.8 2465.9 3226.8 2609.7

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 733.0🥇 411.8🥇
Rsbuild 2.3.7 746.8🥈 428.6🥈
Vite 8.3.8 1188.1🥉 1190.3🥉
webpack 5.112.2 1718.5 1505.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.5 6365ms🥉 1472ms🥈 4961.3kB🥈 1442.6kB🥈
Rsbuild 2.3.7 6332ms🥈 1786ms🥉 4961.1kB🥇 1442.1kB🥇
Vite 8.3.8 6058ms🥇 5787ms 4963.0kB🥉 1448.9kB
webpack 5.112.2 25382ms 9376ms 4974.9kB 1443.9kB🥉
esbuild 0.28.2 9225ms 8020ms 6178.5kB 1798.4kB
Farm 1.7.11 26512ms 7755ms 8510.5kB 2907.9kB
Utoo 1.6.12 16202ms 1139ms🥇 5006.7kB 1460.9kB

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 1063.4🥈 539.8🥈
Rsbuild 2.3.7 1103.1🥉 568.5🥉
Vite 8.3.8 1734.5 1796.5
webpack 5.112.2 1774.5 1447.5
esbuild 0.28.2 1377.8 1472.7
Farm 1.7.11 1678.6 1384.3
Utoo 1.6.12 911.8🥇 240.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.5 1467ms 293ms🥈 1830.2kB 557.2kB🥉
Rsbuild 2.3.7 1502ms 366ms🥉 1829.8kB🥉 557.1kB🥈
Vite 8.3.8 890ms 1000ms 1826.0kB🥈 558.2kB
Rollup 4.68.3 6716ms 6995ms 1770.7kB🥇 545.4kB🥇
Rolldown 1.3.2 865ms🥉 698ms 1857.4kB 561.2kB
webpack 5.112.2 5654ms 1089ms 1850.1kB 565.6kB
esbuild 0.28.2 765ms🥈 730ms 2147.7kB 631.6kB
Farm 1.7.11 3735ms 1244ms 2326.6kB 778.8kB
Utoo 1.6.12 2959ms 262ms🥇 1889.1kB 580.5kB
Parcel 3.0.0-alpha.5 608ms🥇 417ms 2454.0kB 706.2kB

Build memory (MiB):

Name Peak (no cache) Peak (with cache)
Rspack CLI 2.3.5 364.8🥈 201.4🥉
Rsbuild 2.3.7 372.8 229.8
Vite 8.3.8 534.1 549.5
Rollup 4.68.3 1156.6 1157.2
Rolldown 1.3.2 532.0 526.3
webpack 5.112.2 771.8 415.2
esbuild 0.28.2 443.6 423.4
Farm 1.7.11 574.3 510.3
Utoo 1.6.12 371.5🥉 116.5🥇
Parcel 3.0.0-alpha.5 187.0🥇 186.1🥈

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

123 stars

Watchers

8 watching

Forks

Used by

Contributors

Languages