spike-latency-proxy

command
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command spike-latency-proxy inserts a known, symmetric delay in front of a TCP service so the remote-host spike can be measured at WAN round trips without a WAN.

It exists because the honest LAN and Tailscale numbers turned out to be the same number: Tailscale negotiated a direct path over the same local network, so the "VPN hop" measured 8ms like everything else. Two identical columns answer nothing about how a proxied control-mode pane behaves at 60 or 150ms, which is the range that actually decides whether this feature feels local.

A deterministic shim is also better evidence than a real WAN would be: the number is reproducible, so a later Herdr bake-off compares against the same conditions rather than against whatever the internet was doing that day.

It adds latency only. It does not model jitter, loss, or bandwidth limits — naming that plainly matters, because a reader who assumes otherwise will over-trust the throughput column.

go run ./scripts/spike-latency-proxy -listen 127.0.0.1:2222 -target marcusbook-pro.local:22 -rtt 150ms

Then point ssh at the listener. Each direction is delayed by half the configured RTT, so a request/response pair pays it once.

Jump to

Keyboard shortcuts

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