60 lines
2.2 KiB
JSON
60 lines
2.2 KiB
JSON
{
|
|
"name": "benchmarks",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"nx": "workspace:*"
|
|
},
|
|
"scripts": {
|
|
"run": "tsx run-benchmarks.ts",
|
|
"bench:version": "NX_NO_CLOUD=true hyperfine --show-output --setup 'node ../packages/nx/dist/bin/nx.js reset' --warmup 1 --min-runs 10 --export-json results-version.json 'node ../packages/nx/dist/bin/nx.js --version'",
|
|
"bench:show-projects": "NX_NO_CLOUD=true hyperfine --show-output --setup 'node ../packages/nx/dist/bin/nx.js reset' --warmup 1 --min-runs 5 --export-json results-show-projects.json 'node ../packages/nx/dist/bin/nx.js show projects --tui=false'",
|
|
"bench:cat-warm": "NX_NO_CLOUD=true hyperfine --show-output --setup 'node ../packages/nx/dist/bin/nx.js reset' --warmup 1 --min-runs 5 --export-json results-cat-warm.json 'node ../packages/nx/dist/bin/nx.js run-many -t cat --tui=false'",
|
|
"bench:copy-warm": "NX_NO_CLOUD=true hyperfine --show-output --setup 'node ../packages/nx/dist/bin/nx.js reset' --warmup 1 --min-runs 5 --export-json results-copy-warm.json 'node ../packages/nx/dist/bin/nx.js run-many -t copy --tui=false'",
|
|
"bench:build-warm": "NX_NO_CLOUD=true hyperfine --setup 'node ../packages/nx/dist/bin/nx.js reset' --warmup 1 --min-runs 5 --export-json results-build-warm.json 'node ../packages/nx/dist/bin/nx.js run-many -t build --tui=true --tui-auto-exit'"
|
|
},
|
|
"nx": {
|
|
"targets": {
|
|
"run": {
|
|
"dependsOn": [
|
|
"bench:version",
|
|
"bench:show-projects",
|
|
"bench:cat-warm",
|
|
"bench:copy-warm",
|
|
"bench:build-warm"
|
|
]
|
|
},
|
|
"bench:version": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"parallelism": false
|
|
},
|
|
"bench:show-projects": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"parallelism": false
|
|
},
|
|
"bench:cat-warm": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"parallelism": false
|
|
},
|
|
"bench:copy-warm": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"parallelism": false
|
|
},
|
|
"bench:build-warm": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"parallelism": false
|
|
}
|
|
}
|
|
}
|
|
}
|