lolly/benchmark-pprof.yaml
xfy 5e38b63f10 docs(benchmarks): update performance report and add bench-compare script
- Update benchmarks/v0.4.0/REPORT.md with optimization results:
  Task A access-log sampling (-29% latency, -65% allocs),
  Task B file-cache fix (-99.8% allocs, +73% throughput),
  Task C RemoteAddr string caching.
- Add scripts/bench-compare.sh to compare two benchmark summaries
  and flag regressions beyond configurable thresholds.
- Add benchmark-pprof.yaml for reproducible pprof collection.
2026-06-11 14:43:19 +08:00

35 lines
536 B
YAML

servers:
- listen: ":18080"
static:
- path: "/"
root: "./testdata"
index:
- "index.html"
proxy:
- path: "/api"
targets:
- url: "http://127.0.0.1:18081"
monitoring:
pprof:
enabled: true
path: "/debug/pprof"
allow:
- "127.0.0.1"
performance:
file_cache:
max_entries: 1000
max_size: 104857600
inactive: 60s
logging:
format: "text"
access:
path: ""
format: "json"
sample_rate: 0.1
error:
path: ""
level: "warn"