A benchmark is only useful when it measures the work users actually wait for. For a code runner, report queue delay, container startup, compilation or interpretation, execution, output capture, and cleanup separately. A single end-to-end number can hide whether the bottleneck is scheduling, the runtime, or infrastructure.
Define the workload before running it
Choose a fixed set of representative jobs: a short successful program, a compile failure, a CPU-bound program, bounded output, a timeout, and an attempted resource abuse. Record language and runtime versions, image digest, host size, concurrency, warm or cold cache state, and the exact benchmark revision. Never compare runs with different limits or runtime images and call the result a language comparison.
Report distributions such as median and tail percentiles, sample count, and error rate. Warm up where appropriate, then repeat the run. Keep load generation separate from the service under test so the benchmark client does not become the bottleneck. Do not publish an impressive best-case run without its conditions.
Include safety and queue behavior
Throughput under unrestricted execution is not a meaningful production result. Apply the same CPU, memory, wall-clock, output, process, and concurrency limits used in production. Include overloaded periods and observe whether requests queue, reject quickly, or exhaust workers. A service that is fast only when it accepts unbounded work is not healthy.
Save raw results and the command used to produce them. Make the test reproducible in CI or a controlled environment, but avoid brittle pass/fail thresholds until normal variance is understood. The benchmark should answer a decision—such as whether a runtime image change reduced startup time—rather than serve as a marketing number.
Name the measurement before publishing a number
The checked-in DevShareHub executor has distinct /health and /execute routes. A health result establishes that the executor responds to that route. An execution result also reflects authentication, runtime startup and output handling. Run the health control alongside execution jobs to spot a slow origin, and keep both measurements labeled in the results. curl's time_total reports the operation's elapsed time in seconds. curl write-out documentation
For a concurrency test, submit the same mix of jobs through the normal authenticated path on a disposable deployment. Record submitted, completed, failed, and timed-out counts. Include the runtime or image identifier, warm-up count and concurrency with any median or 95th percentile. A run where 100 jobs were submitted and only successful responses appear in the latency table needs a separate timeout count to be interpretable. Use the same workload before and after an executor change, and report whichever stage actually changed.
Worked example
This measures one HTTP request, not execution throughput. Use it to separate reachability from the later authenticated execution benchmark and record failures alongside timing.
shcurl --silent --show-error --output /dev/null \ --write-out 'status=%{http_code} total=%{time_total}\n' \ http://127.0.0.1:8090/health




Community
Discussion
Loading comments…