bench

command
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

server is a minimal HTTP server used only by scripts/bench.sh: it binds an ephemeral port (never 8000-8003, reserved for the conformance harness), answers every request with a small fixed JSON body, and prints "PORT=<n>" on its own line to stdout so the caller can read it back. The caller is responsible for killing it (e.g. `kill $PID` in a trap); it does not watch stdin, since a background job's stdin is often already at EOF, which would exit it immediately.

Jump to

Keyboard shortcuts

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