bench

command
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 10 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL