mirror of
https://github.com/aykhans/sarin.git
synced 2026-04-15 12:29:36 +00:00
920 B
920 B
Benchmark
Compares sarin, wrk, and bombardier against a minimal C HTTP server using epoll.
Requirements
sarin,wrk,bombardierin PATHgcc
Usage
./benchmark/run.sh
Configuration is at the top of run.sh:
DURATION="30s"
CONNECTIONS=(50 100 200)
ITERATIONS=3
Structure
benchmark/
run.sh - benchmark script
server/
server.c - C epoll HTTP server (returns "ok")
results/ - output directory (auto-created)
Output
Each run produces per-tool files:
*.out- tool stdout (throughput, latency)*.time-/usr/bin/time -voutput (peak memory, CPU time)*_resources.csv- sampled CPU/memory during run
A summary table is printed at the end with requests/sec, total requests, elapsed time, and peak memory.