Skip to content
arknet

Native Asio TCP: Callbacks and Coroutines Load Comparison

16 clients; 64/1024/16384 bytes; windows 1/4/16/64; three runs/configuration.

Native Asio callbacks/coroutines share fixed-size TCP batches: the server reads a full batch, applies the same computation per message, then writes the entire reply. Window 1 records message RTT; larger windows batch RTT. Public arknet coroutine endpoints remain TODO.

No extra application computation

Round-trip throughput

Bidirectional application payload throughput

Batch p99 RTT

Average process CPU utilization

Coroutine/callback throughput ratio

Coroutine/callback CPU utilization ratio

  • Standalone Asio: Matched coroutine/callback throughput median range: 0.92×–1.08×.
  • Standalone Asio: Matched coroutine/callback CPU median range: 0.98×–1.02×; below 1 means lower average process CPU. Compare throughput.
  • Boost.Asio: Matched coroutine/callback throughput median range: 0.92×–1.11×.
  • Boost.Asio: Matched coroutine/callback CPU median range: 0.92×–1.05×; below 1 means lower average process CPU. Compare throughput.

10,000 deterministic iterations per echo

Round-trip throughput

Bidirectional application payload throughput

Batch p99 RTT

Average process CPU utilization

Coroutine/callback throughput ratio

Coroutine/callback CPU utilization ratio

  • Standalone Asio: Matched coroutine/callback throughput median range: 0.95×–1.01×.
  • Standalone Asio: Matched coroutine/callback CPU median range: 0.96×–1.01×; below 1 means lower average process CPU. Compare throughput.
  • Boost.Asio: Matched coroutine/callback throughput median range: 0.93×–1.02×.
  • Boost.Asio: Matched coroutine/callback CPU median range: 0.95×–1.01×; below 1 means lower average process CPU. Compare throughput.

Complete numeric JSON (p95, run ranges and failures)

Failed Profiles

No failed profiles.

Metrics, statistics and reproduction

Navigation

Type to search…

↑↓ navigate↵ selectEsc close