https://github.com/guoyunhe/test-react-bundle-size
React 16, 17, 18, 19 bundle size comparison
https://github.com/guoyunhe/test-react-bundle-size
Last synced: 3 months ago
JSON representation
React 16, 17, 18, 19 bundle size comparison
- Host: GitHub
- URL: https://github.com/guoyunhe/test-react-bundle-size
- Owner: guoyunhe
- License: gpl-3.0
- Created: 2025-01-08T05:40:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T05:59:07.000Z (5 months ago)
- Last Synced: 2025-01-08T06:30:38.679Z (5 months ago)
- Language: CSS
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test React & Preact bundle size and performance
## Test environment
- CPU: AMD Ryzen 5600X, 6 cores, 12 threads
- RAM: 4x8GB DDR4 3200MHz
- OS: openSUSE Tumbleweed, x86_64, kernel version 6.12.8
- Browser: Chromium 131, 20x cpu slow-down, slow 4G network throttling, cache disabled
- Bundler: Vite 6.x
- Server: `vite build && vite preview`## Test result
| lib & version | minified size | gzipped size | LCP | INP |
| -------------- | ------------- | ------------ | ----- | ---- |
| react 16.14.0 | 133.16 kB | 41.92 kB | 1.83s | 48ms |
| react 17.0.2 | 134.15 kB | 43.45 kB | 1.82s | 48ms |
| react 18.3.1 | 143.87 kB | 46.34 kB | 1.88s | 48ms |
| react 19.0.0 | 186.49 kB | 58.96 kB | 1.94s | 40ms |
| preact 10.25.4 | 16.26 kB | 6.84 kB | 1.71s | 16ms |