First run
Run a three-stage benchmark against the mock server that ships with servtuner. You need no cluster, database, GPU or API key. The load takes three and a half minutes.
Prerequisites
Section titled “Prerequisites”- A checkout of the servtuner repository:
git clone https://github.com/servtuner/servtuner. - A Go toolchain. The
benchmodule selects the version it needs. - Port 18000 free.
Run it
Section titled “Run it”-
Build servtuner and the mock server from the checkout.
Terminal window mkdir -p /tmp/servtuner-quickstart(cd bench && go build -o /tmp/servtuner-quickstart/servtuner ./cmd/servtuner)(cd deploy/mocks/openai-mock && go build -o /tmp/servtuner-quickstart/openai-mock .)cd /tmp/servtuner-quickstart -
Save this RunSpec as
quickstart.yaml.quickstart.yaml apiVersion: servtuner.dev/v1kind: RunSpecname: quickstarttarget:type: openai-compatibleendpoint: http://localhost:18000/v1model: mock-modeltls: { mode: platform }engine: { type: loadgen }workload:api: chatstreaming: truedataset:type: syntheticinput_tokens: { mean: 128 }output_tokens: { mean: 32 }load:warmup: 30sstages:- { rate: 5, duration: 60s }- { rate: 10, duration: 60s }- { rate: 20, duration: 60s }slos: { ttft_p95: 500ms, e2e_p95: 2s }platformmeans plain HTTP. See transport security before using it across a network. -
Validate it.
Terminal window ./servtuner validate --spec quickstart.yamlOutput ok: quickstart.yaml is a valid RunSpec (quickstart) -
Start the mock in a second terminal.
Terminal window cd /tmp/servtuner-quickstart./openai-mock --tls-mode platform --listen 127.0.0.1:18000 -
Run the benchmark.
Terminal window ./servtuner run --spec quickstart.yaml --out ./quickstart-runThe last line reports the run id, its result and the bundle directory.
Verify
Section titled “Verify”ls quickstart-runThe bundle contains manifest.json, requests.parquet, analysis.json and more. It is graded degraded, because no Prometheus was configured and the client’s CPU had no limit to compare with. Its client-side numbers are still usable.
Run another way
Section titled “Run another way”Run the control plane locally, open New run, and paste the RunSpec in the YAML tab.
POST /runs.