Benchmark Dashboard

Interactive visualization of performance measurements for the a2a-protocol-sdk Rust implementation. All data is auto-generated from Criterion.rs benchmark results by CI.

Open the interactive dashboard: Benchmark Dashboard →

What the dashboard shows

TabContents
OverviewKey performance highlights, payload scaling, event queue throughput
TransportHTTP round-trip latency, JSON-RPC vs REST, connection reuse, error paths
SerdePer-type serialization cost, batch scaling, SerBuffer vs to_vec, interceptor overhead
ConcurrencySends, streams, and store operations at 1-64 concurrent connections
Data VolumeStore operations at 1K-100K tasks, history depth scaling
BackpressureStream volume, slow consumer impact, concurrent streams, timer calibration
EnterpriseMulti-tenant isolation, CORS, rate limiting, eviction, large histories, pagination
ProductionAgent burst scaling, E2E orchestration, cold start, push config CRUD, cross-language
MemoryTimings of the counting-allocator benchmarks (task and card serialize/deserialize), serialize time by payload size, history-depth scaling; allocation counts are asserted in the benchmarks, not charted
All ResultsSearchable table of all individual benchmark measurements

Methodology

All benchmarks use Criterion.rs with the median and its 95 % confidence interval (Criterion's default level) as the robust central tendency measure. Each benchmark runs Criterion's default of 100 samples unless its group sets a smaller sample_size (10–20 for the slow end-to-end groups), with warm-up iterations to avoid cold-start artifacts.

  • Environment: CI runners (ubuntu-latest) — use for relative comparisons and regression detection, not absolute performance guarantees
  • Transport: All HTTP benchmarks use loopback (127.0.0.1) to isolate SDK overhead from network latency
  • Determinism: Fixed task IDs and payloads inside measurement loops, except the two data_volume save groups, which insert a new task ID per iteration

Reproducing locally

# Run all benchmarks and generate the dashboard
cargo bench -p a2a-benchmarks
./benches/scripts/generate_dashboard.sh

# Build the book, and copy in Chart.js and the fonts as docs.yml does
mdbook build book
cp -r book/static/. book/book/

# Open the dashboard
xdg-open book/book/reference/benchmark-dashboard.html   # `open` on macOS

Opening the generated file under book/src/ directly shows no charts: the page loads Chart.js and the fonts from ../vendor/ and ../fonts/ of the built site.

See also