- 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.
35 lines
536 B
YAML
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"
|