0 branches
Tree
Top files
Clone with HTTPS:
run_executor_benchmark.sh
executor: add owner-thread executor module (#27540)
last Jun 23
1006 bytes
x.executor benchmarks
This folder contains cautious local benchmarks for the public x.executor API.
They are observation tools, not correctness tests and not portable performance
claims.
Available benchmark
executor_benchmark.v: measures short default runs fortry_post()plusdrain_pending(),run_sync(), bounded admission timeout, and small multi-producer submission.run_executor_benchmark.sh: builds and runs the benchmark with the local./v, isolatedVTMP/VCACHE, and a temporary output binary.
Run
From the repository root:
sh vlib/x/executor/benchmarks/run_executor_benchmark.sh
The script is serialized by design. Do not run multiple V benchmark or test
runners against the same checkout/cache without isolating VTMP, VCACHE, and
output paths.
Parameters
The defaults are intentionally small. Tune them locally with:
XEXECUTOR_BENCH_DRAIN_ROUNDSXEXECUTOR_BENCH_DRAIN_JOBSXEXECUTOR_BENCH_SYNC_ROUNDSXEXECUTOR_BENCH_TIMEOUT_ROUNDSXEXECUTOR_BENCH_TIMEOUT_MSXEXECUTOR_BENCH_PRODUCERS
All environment values are clamped. Do not commit machine-specific benchmark results as permanent truth. Tests remain the authority for functional and concurrency-safety validation.