gosim

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 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 gosim replays `bench/lanelab`'s three scenarios against the SHIPPED lane router and prints the ship gate.

── WHY THERE IS A SECOND SIMULATOR ─────────────────────────────────────────

`bench/lanelab/sim.py` is a reference model: it re-implements the design in Python, it is quick to change, and it found five of the seven corrections in docs/design/routing/provider-routing.md Part III. But a second implementation agreeing with the first is not evidence about the build. So this program drives the REAL registry — `lane.Default()`'s real ledger primed from the same sheet fixture, the real chooser, the real watch, the real budget — against `internal/lane/lanestub`, over the same three scenarios, the same eight seeds, and the same objective. THE SHIP DECISION IS TAKEN HERE (docs/design/routing/provider-routing.md, Part III, C6); the Python table is the bug report when the two disagree.

It is a main package under bench/, so none of it is in the shipped binary.

go run ./bench/lanelab/gosim                       the committed run
go run ./bench/lanelab/gosim -requests 200         a quick one
go run ./bench/lanelab/gosim -json out.json        same, plus the raw table
go run ./bench/lanelab/gosim -scenario talk -policy belief+hedge

Jump to

Keyboard shortcuts

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