Documentation
¶
Overview ¶
Concurrent benchmark: N goroutine workers each acquire/release a shared lock repeatedly and report latency statistics.
Each worker dials a persistent TCP connection and uses the low-level Acquire/Release protocol, so the benchmark measures lock latency rather than TCP connection overhead.
Usage:
go run ./cmd/bench [--workers 10] [--rounds 50] [--key bench] \
[--servers host1:port1,host2:port2] [--connections 0]
Click to show internal directories.
Click to hide internal directories.