mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
workloads.json listed every workload in one array, and its README table listed them in one hand order, so changes that each added a workload appended at the same place and conflicted. Each workload is now a JSON file in benchmarks/runtime/workloads/ named after it, read through benchmarks/runtime/workloads.mjs by the bench runner, the zero-cost gate, the strace script and the dynamic-tier test, ordered by category and then name. The loader still reads workloads.json in a checkout from before this change, so the gate can compare against one. The README table follows the same order.
15 lines
246 B
JSON
15 lines
246 B
JSON
{
|
|
"kind": "server",
|
|
"entry": "workloads/http-api.ts",
|
|
"args": [],
|
|
"client": {
|
|
"script": "clients/http-load.mjs",
|
|
"args": [
|
|
"--connections=64",
|
|
"--threads=2",
|
|
"--warmup=4000",
|
|
"--requests=40000"
|
|
]
|
|
}
|
|
}
|