mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Things I found while integrating this bench into https://github.com/vercel/next.js/pull/96234. See code. --------- Co-authored-by: Hanzo Dev <[email protected]>
36 lines
1.3 KiB
JSON
36 lines
1.3 KiB
JSON
{
|
|
"name": "flight-ssr-bench",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"devEngines": {
|
|
"node": "20.x || 22.x"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.16.0",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.25.9",
|
|
"@babel/preset-react": "^7.22.5",
|
|
"@babel/register": "^7.28.6",
|
|
"autocannon": "^8.0.0",
|
|
"babel-loader": "^8.2.3",
|
|
"react": "experimental",
|
|
"react-dom": "experimental",
|
|
"react-server-dom-webpack": "experimental",
|
|
"webpack": "^5.64.4"
|
|
},
|
|
"scripts": {
|
|
"copy-modules": "cp -r ../../build/oss-experimental/* ./node_modules/",
|
|
"prebench": "yarn copy-modules",
|
|
"prebench:bare": "yarn copy-modules",
|
|
"prebench:profile": "yarn copy-modules",
|
|
"prebench:concurrent": "yarn copy-modules",
|
|
"prebench:server": "yarn copy-modules",
|
|
"prestart": "yarn copy-modules",
|
|
"start": "NODE_ENV=production node bench-server.js",
|
|
"bench": "NODE_ENV=production node --expose-gc bench.js",
|
|
"bench:profile": "NODE_ENV=production node --expose-gc bench.js --profile",
|
|
"bench:bare": "NODE_ENV=production node --expose-gc bench.js --no-injection",
|
|
"bench:concurrent": "NODE_ENV=production node --expose-gc bench.js --concurrent",
|
|
"bench:server": "NODE_ENV=production node bench-server.js --bench"
|
|
}
|
|
}
|