bench

command
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command bench runs the mcpproxy benchmark.

Default (offline) mode scores the committed Spec 065 frozen corpus for token reduction and writes a JSON report plus a static HTML dashboard:

go run ./bench/cmd/bench [-corpus PATH] [-out DIR] [-encoding NAME]

Live mode boots against a running proxy (see bench/docker-compose.yml) to add the exact-token comparison (full schemas), retrieval accuracy (Recall@k / MRR / nDCG over the golden set), and search latency:

go run ./bench/cmd/bench -live [-proxy URL] [-api-key KEY] [-golden PATH]

Reports land in bench/results/ (gitignored — reports are never committed, per the Spec 065 CN-003 repo rule).

Jump to

Keyboard shortcuts

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