Benchmarks

Sub-Millisecond
Agent Communication

AISP runs over a WireGuard-encrypted NATS mesh. Agent-to-agent latency within the mesh averages 0.4ms — 30x faster than REST/HTTP and faster than most gRPC deployments.

0.0ms
Agent-to-agent latency
within mesh
0 msg/s
Throughput
sustained
0ms
CRDT sync p99
across mesh
0
Message loss
at 11k msg/s

Latency Simulation

Simulates a round-trip agent message through the AISP session layer on local mesh.

Protocol Latency Comparison

Average round-trip latency, p50, local network conditions

AISP
0.4ms
NATS direct
0.6ms
gRPC
2ms
WebSocket
3ms
REST/HTTP
12ms

Memory Sync Latency

Time for a write to propagate to all mesh nodes (p99)

AISP CRDT
<50ms
Redis round-trip
<200ms
Postgres
<400ms

Methodology

Hardware

Benchmarks run on 5-node mesh: Apple Silicon M-series (master, nodo) + Contabo VPS (AMD EPYC) + Kali + Flow. Connected via WireGuard over Tailscale.

Measurement

Latency = time from message publish on sender to delivery confirmed on receiver. 10,000 samples per run, p50 reported. Top 1% outliers excluded.

Throughput

Messages of 1KB payload, published at maximum rate from a single producer. Measured until first message drop or 30 seconds elapsed.

CRDT sync

Write committed on one node, time measured until read confirmed on all 4 other nodes. LWW-Map with 10 keys, 100-byte values.