Benchmarks

O(1) vs O(n) context efficiency.

Reproducible measurements comparing one registry tool context versus one wrapper per CLI.

Catalog Size

845

CLIs benchmarked

O(1) Tokens

74

Per-query context floor

Discover p95 (captured)

1574ms

Observed during benchmark run

Generated

19d ago

API source: https://api.clime.sh · refresh recommended

  • Single registry tool context (`clime.search`) regardless of catalog size.
  • One wrapper tool per CLI provided directly to the agent context.
  • Estimated tokens = UTF-8 bytes / 4 (rounded up).
  • O(1) latency measured from live /v1/discover API calls. O(n) latency measured as local linear scan over in-context tool wrappers.
Tool WrappersO(n) TokensO(1) TokensRatio (O(n)/O(1))Reduction with O(1)O(n) Local scan ms
109397412.69x92.12%0.0132
2522727430.70x96.74%0.0211
5046367462.65x98.40%0.0375
100922974124.72x99.20%0.0708
2001868974252.55x99.60%0.1345
5004609874622.95x99.84%0.3776
84577121741042.18x99.90%0.6662

Reproduce locally with `npm run benchmark:context`.