# Benchmarks The scripts used to produce [the performance report](../report/veld-benchmark-report.pdf) ([Markdown](../BENCHMARK_REPORT.md)). They use [`wrk`](https://github.com/wg/wrk) and assume a test harness serving the same files from both servers. | Script | Purpose | |---|---| | `bench.sh [dur] [label] [reps]` | Throughput/latency, nginx (:8080) vs veld (:8081), interleaved peak-of-N | | `resource.sh [dur] [file]` | CPU% and RSS of each server under identical load | | `verify.sh` | Byte-level content integrity + header/304/206/HEAD checks | **Methodology.** On a shared 8-core host, set **both** servers to `worker_processes 4` so that 4 workers + `wrk -t4` saturate exactly 8 cores (no oversubscription), and take the **peak of N interleaved runs** per case to suppress scheduling noise. See the report for the full environment and results. > These scripts reference a local test layout (ports 8080/8081, `/tmp/bench`). Adapt the > paths/ports to your environment before running.