Paired requests and a prospective hedging experiment
These are constructed workloads with real measured HTTP timings from two loopback processes on a single host. Use them to test hedging simulators, detect off-by-one errors, reproduce policy selection, and compare predicted with observed outcomes.
The complete_pairs configuration contains 1,000 consecutive uncensored same-request pairs in integer microseconds. Each row records primary_us and backup_us from separate branch dispatches. Within the file, the original calibration used the first 700 rows and held out the final 300.
The prospective_ab configuration contains 1,000 different matched request IDs. Each ID was run twice with arm order randomized. The columns are request ID, whether the hedged arm ran first (1/0), primary-only observed µs, hedged observed µs, and backup dispatch µs from trial start (blank if unused). These measurements include client scheduling. All launched backups completed.
from datasets import load_dataset
paired = load_dataset("pgg-engineering/racecurve-hedge-traces", "complete_pairs", split="train")
prospective = load_dataset("pgg-engineering/racecurve-hedge-traces", "prospective_ab", split="test")
Selected on the first 700 pairs with a 6 ms deadline and 25% backup-launch budget, a delay of 1,177 µs produced 0 misses and 42 launches on the next 300 rows in replay. In the independently seeded prospective experiment the primary-only arm missed 80 deadlines and the hedged arm missed 9. The hedged median rose from 789 to 810 µs, and 126 backups launched. The workload intentionally injects both per-replica and shared stalls. One logical request was in flight at a time. These data cannot measure overload, WAN effects or savings from cancellation. Repeat runs vary with the host.
Open Racecurve · Collector, A/B runner and reproduction instructions
Does the policy survive contention?
The shared_slot_load configuration adds 36,800 live observations from 12 host-local runs. Two replicas compete for two shared worker slots and both execute every launched request. Planned arrivals are independent of completions. At 400 requests/s the fixed 1,177 µs delay reduced 6 ms misses from 10.1% to 1.3%. At 1,600 requests/s it increased misses from 26.9% to 98.8%. At 2,600 requests/s both policies missed over 98%.
Each row gives the offered requests/s, arm, seed, request ID, planned arrival, first response and branch dispatch, dequeue, start and completion times. Those timestamps are integer nanoseconds relative to each run start. The original HTTP configurations use microseconds. A negative timestamp marks an unlaunched backup. This experiment ran timed work on real threads with shared slots and uncancelled losers. Queueing, dispatch jitter and drain are included. It contains no provider or GPU traffic.
from datasets import load_dataset
rows = load_dataset("pgg-engineering/racecurve-hedge-traces", "shared_slot_load", split="test")
Runner, methodology and original per-run files · Feedback and independent reproductions
What changes when the dispatcher enforces a backup budget?
The budgeted_shared_slots test split contains 82,800 request observations collected by PGG on November 26, 2026. Each of three policies ran the same scheduled service demands at 400, 1,600 and 2,600 requests/s on two shared execution slots. Three seeds rotate execution order. Each run begins with empty queues. The workload uses timed sleeps on real threads and lets both copies finish.
The off policy runs the primary alone. The fixed policy launches an outstanding request's backup at a 1,177 µs timer. The capped policy also requires that total launches through decision n stay at or below floor(n/4). Unused allowance carries forward. The existing timestamp columns are in nanoseconds relative to each run. Group by rate_rps, seed and policy before comparing IDs or calculating a percentile.
At 1,600/s, misses of the 6 ms deadline were 2,042 for primary-only, 9,432 for the fixed timer and 3,915 for the capped timer, each over 9,600 requests. Capping held launches to 2,400 but primary-only still had fewer misses. At 400/s, primary-only missed 204 deadlines and both timers missed one, each over 2,400 requests. These observations describe a short constructed workload.
Runner, protocol and second environment comparison · Per-run summaries