Windows Benchmarks

Generated 2026-11-20 from corosio 893a69602155 — benchmark run. This page is fully generated; do not edit by hand (see the Benchmarks landing page).

Summary

Within noise means the relative difference is within twice the combined run-to-run noise (the root-sum-square of each side’s CV). Differences that small are indistinguishable from measurement jitter. See Methodology for how these figures are computed.

0 faster · 17 within noise · 60 slower of 77 benchmarks — median -4.8% vs Boost.Asio (callbacks) on the same reactor.

Summary — Windows ← slower · within noise · faster → per benchmark, vs Boost.Asio (callbacks) socket_throughput 11 benchmarks slower than asio (callbacks) 11 16 benchmarks within noise than asio (callbacks) 16 -2.8% http_server 11 benchmarks slower than asio (callbacks) 11 -3.4% fan_out 18 benchmarks slower than asio (callbacks) 18 -6.0% accept_churn 8 benchmarks slower than asio (callbacks) 8 1 benchmark within noise than asio (callbacks) -6.8% socket_latency 12 benchmarks slower than asio (callbacks) 12 -10.3%

Test Environment

CPU

AMD Ryzen 5 3600 6-Core Processor

Cores

6

RAM (GB)

64

OS

MSYS_NT-10.0-20348 3.4.7-ea781829.x86_64

Kernel/build

2023-07-05 12:05 UTC

Compiler

c++.exe (x86_64-posix-seh-rev2, Built by MinGW-W64 project) 12.2.0

CMake

cmake version 3.26.3

liburing

n/a

Boost commit

b43db5cedbe534c2659c002fdee9e2e8040f1265

Asio commit

e99d9da6d9b76a222e29dcaf3d2df51c788b7527

Asio reactor

IOCP

Capy commit

6a9569060f999453e1f7b59cc9ae31c808c0778b

Corosio commit

893a69602155fb98b1b9340bb1e467502d0837e5

Corosio branch

develop

Date (UTC)

2026-11-19

Iterations

7

Duration per benchmark (s)

2.0

Results

accept_churn

Rate of setting up and tearing down short-lived TCP connections: connect, accept, close.

accept_churn — Windows ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -15% -10% -5% +5% +10% 0% burst/10 — N connects are fired at once, then all N are accepted before closing; N is the burst size. burst/10 — N connects are fired at once, then all N are accepted before closing; N is the burst size. burst/10 burst/100 — N connects are fired at once, then all N are accepted before closing; N is the burst size. burst/100 — N connects are fired at once, then all N are accepted before closing; N is the burst size. burst/100 burst_lockless/10 — Same as burst, with the context in single-threaded lockless mode; N is the burst size. burst_lockless/10 — Same as burst, with the context in single-threaded lockless mode; N is the burst size. burst_lockless/10 burst_lockless/100 — Same as burst, with the context in single-threaded lockless mode; N is the burst size. -4% burst_lockless/100 — Same as burst, with the context in single-threaded lockless mode; N is the burst size. +6% burst_lockless/100 concurrent/1 — N independent accept loops run on separate listeners at once, each doing a one-way one-byte transfer (client writes, server reads) per connection; N is the number of loops. -8% concurrent/1 — N independent accept loops run on separate listeners at once, each doing a one-way one-byte transfer (client writes, server reads) per connection; N is the number of loops. concurrent/1 concurrent/16 — N independent accept loops run on separate listeners at once, each doing a one-way one-byte transfer (client writes, server reads) per connection; N is the number of loops. concurrent/16 — N independent accept loops run on separate listeners at once, each doing a one-way one-byte transfer (client writes, server reads) per connection; N is the number of loops. concurrent/16 concurrent/4 — N independent accept loops run on separate listeners at once, each doing a one-way one-byte transfer (client writes, server reads) per connection; N is the number of loops. concurrent/4 — N independent accept loops run on separate listeners at once, each doing a one-way one-byte transfer (client writes, server reads) per connection; N is the number of loops. concurrent/4 sequential — Single connect/accept/close loop with a one-way one-byte transfer (client writes, server reads) per connection, one connection at a time. sequential — Single connect/accept/close loop with a one-way one-byte transfer (client writes, server reads) per connection, one connection at a time. sequential sequential_lockless — Same as sequential, with the context in single-threaded lockless mode. sequential_lockless — Same as sequential, with the context in single-threaded lockless mode. -4% sequential_lockless
Detailed results
Benchmark Implementation Median CV vs asio

burst/10

corosio (IOCP)

1.55K ops/s

0.42%

-6.1%

burst/10

asio (coroutines)

1.69K ops/s

0.75%

+2.6%

burst/10

asio (callbacks)

1.65K ops/s

0.46%

baseline

burst/100

corosio (IOCP)

156.3 ops/s

0.82%

-4.3%

burst/100

asio (coroutines)

170.0 ops/s

0.88%

+4.1%

burst/100

asio (callbacks)

163.3 ops/s

0.48%

baseline

burst_lockless/10

corosio (IOCP)

1.57K ops/s

0.23%

-5.8%

burst_lockless/10

asio (coroutines)

1.70K ops/s

0.19%

+2.5%

burst_lockless/10

asio (callbacks)

1.66K ops/s

0.20%

baseline

burst_lockless/100

corosio (IOCP)

159.1 ops/s

0.64%

-4.2%

burst_lockless/100

asio (coroutines)

175.5 ops/s

0.86%

+5.7%

burst_lockless/100

asio (callbacks)

166.1 ops/s

0.98%

baseline

concurrent/1

corosio (IOCP)

12.53K ops/s

0.26%

-8.4%

concurrent/1

asio (coroutines)

13.16K ops/s

0.29%

-3.8%

concurrent/1

asio (callbacks)

13.68K ops/s

9.63%

baseline

concurrent/16

corosio (IOCP)

13.43K ops/s

0.37%

-6.8%

concurrent/16

asio (coroutines)

14.01K ops/s

0.51%

-2.7%

concurrent/16

asio (callbacks)

14.41K ops/s

0.45%

baseline

concurrent/4

corosio (IOCP)

13.17K ops/s

0.32%

-7.2%

concurrent/4

asio (coroutines)

13.68K ops/s

0.20%

-3.6%

concurrent/4

asio (callbacks)

14.20K ops/s

0.26%

baseline

sequential

corosio (IOCP)

12.46K ops/s

0.39%

-8.4%

sequential

asio (coroutines)

13.11K ops/s

0.33%

-3.7%

sequential

asio (callbacks)

13.61K ops/s

0.41%

baseline

sequential_lockless

corosio (IOCP)

12.55K ops/s

0.36%

-8.4%

sequential_lockless

asio (coroutines)

13.15K ops/s

0.26%

-4.1%

sequential_lockless

asio (callbacks)

13.70K ops/s

0.25%

baseline


fan_out

Fan-out/fan-in coroutine coordination: a parent starts concurrent sub-requests against echo servers and awaits their completion via a shared latch.

fan_out — Windows, part 1 ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -15% -10% -5% +5% 0% concurrent_parents/1 — N independent parents each fan out to 16 sub-requests at once; N is the number of parents. -6% concurrent_parents/1 — N independent parents each fan out to 16 sub-requests at once; N is the number of parents. -11% concurrent_parents/1 concurrent_parents/16 — N independent parents each fan out to 16 sub-requests at once; N is the number of parents. -8% concurrent_parents/16 — N independent parents each fan out to 16 sub-requests at once; N is the number of parents. -11% concurrent_parents/16 concurrent_parents/4 — N independent parents each fan out to 16 sub-requests at once; N is the number of parents. -5% concurrent_parents/4 — N independent parents each fan out to 16 sub-requests at once; N is the number of parents. -9% concurrent_parents/4 concurrent_parents_lockless/1 — Same as concurrent_parents, with the context in single-threaded lockless mode; N is the number of parents. -6% concurrent_parents_lockless/1 — Same as concurrent_parents, with the context in single-threaded lockless mode; N is the number of parents. -10% concurrent_parents_lockless/1 concurrent_parents_lockless/16 — Same as concurrent_parents, with the context in single-threaded lockless mode; N is the number of parents. -7% concurrent_parents_lockless/16 — Same as concurrent_parents, with the context in single-threaded lockless mode; N is the number of parents. -12% concurrent_parents_lockless/16 concurrent_parents_lockless/4 — Same as concurrent_parents, with the context in single-threaded lockless mode; N is the number of parents. -5% concurrent_parents_lockless/4 — Same as concurrent_parents, with the context in single-threaded lockless mode; N is the number of parents. -10% concurrent_parents_lockless/4
Detailed results
Benchmark Implementation Median CV vs asio

concurrent_parents/1

corosio (IOCP)

7.33K ops/s

0.11%

-5.7%

concurrent_parents/1

asio (coroutines)

6.94K ops/s

0.80%

-10.7%

concurrent_parents/1

asio (callbacks)

7.77K ops/s

0.33%

baseline

concurrent_parents/16

corosio (IOCP)

6.77K ops/s

0.92%

-7.8%

concurrent_parents/16

asio (coroutines)

6.50K ops/s

0.74%

-11.5%

concurrent_parents/16

asio (callbacks)

7.34K ops/s

0.46%

baseline

concurrent_parents/4

corosio (IOCP)

7.27K ops/s

0.58%

-5.1%

concurrent_parents/4

asio (coroutines)

6.93K ops/s

0.51%

-9.4%

concurrent_parents/4

asio (callbacks)

7.66K ops/s

0.15%

baseline

concurrent_parents_lockless/1

corosio (IOCP)

7.33K ops/s

0.27%

-6.0%

concurrent_parents_lockless/1

asio (coroutines)

7.03K ops/s

0.22%

-9.8%

concurrent_parents_lockless/1

asio (callbacks)

7.79K ops/s

0.24%

baseline

concurrent_parents_lockless/16

corosio (IOCP)

6.84K ops/s

0.80%

-7.5%

concurrent_parents_lockless/16

asio (coroutines)

6.54K ops/s

0.52%

-11.5%

concurrent_parents_lockless/16

asio (callbacks)

7.39K ops/s

0.44%

baseline

concurrent_parents_lockless/4

corosio (IOCP)

7.27K ops/s

0.43%

-5.0%

concurrent_parents_lockless/4

asio (coroutines)

6.93K ops/s

0.33%

-9.5%

concurrent_parents_lockless/4

asio (callbacks)

7.66K ops/s

0.16%

baseline

fan_out — Windows, part 2 ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -20% -15% -10% -5% +5% 0% fork_join/1 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. fork_join/1 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. fork_join/1 fork_join/16 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. fork_join/16 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. fork_join/16 fork_join/4 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. fork_join/4 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. fork_join/4 fork_join/64 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. -4% fork_join/64 — One parent starts N sub-requests to echo servers and waits for all to finish before repeating; N is the fan-out width. -9% fork_join/64 fork_join_lockless/1 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. -11% fork_join_lockless/1 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/1 fork_join_lockless/16 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/16 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/16 fork_join_lockless/4 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/4 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/4 fork_join_lockless/64 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/64 — Same as fork_join, with the context in single-threaded lockless mode; N is the fan-out width. fork_join_lockless/64 nested/16 — Two-level fan-out: the parent starts N groups of 4 sub-requests each, each group awaited via its own latch; N is the number of groups. nested/16 — Two-level fan-out: the parent starts N groups of 4 sub-requests each, each group awaited via its own latch; N is the number of groups. nested/16 nested/4 — Two-level fan-out: the parent starts N groups of 4 sub-requests each, each group awaited via its own latch; N is the number of groups. nested/4 — Two-level fan-out: the parent starts N groups of 4 sub-requests each, each group awaited via its own latch; N is the number of groups. -14% nested/4 nested_lockless/16 — Same as nested, with the context in single-threaded lockless mode; N is the number of groups. nested_lockless/16 — Same as nested, with the context in single-threaded lockless mode; N is the number of groups. nested_lockless/16 nested_lockless/4 — Same as nested, with the context in single-threaded lockless mode; N is the number of groups. nested_lockless/4 — Same as nested, with the context in single-threaded lockless mode; N is the number of groups. nested_lockless/4
Detailed results
Benchmark Implementation Median CV vs asio

fork_join/1

corosio (IOCP)

111.7K ops/s

0.32%

-10.5%

fork_join/1

asio (coroutines)

111.7K ops/s

0.58%

-10.4%

fork_join/1

asio (callbacks)

124.8K ops/s

0.86%

baseline

fork_join/16

corosio (IOCP)

7.34K ops/s

0.18%

-5.8%

fork_join/16

asio (coroutines)

6.95K ops/s

0.41%

-10.8%

fork_join/16

asio (callbacks)

7.79K ops/s

0.30%

baseline

fork_join/4

corosio (IOCP)

29.08K ops/s

0.30%

-6.7%

fork_join/4

asio (coroutines)

28.07K ops/s

0.42%

-9.9%

fork_join/4

asio (callbacks)

31.17K ops/s

0.26%

baseline

fork_join/64

corosio (IOCP)

1.82K ops/s

1.35%

-4.5%

fork_join/64

asio (coroutines)

1.73K ops/s

0.64%

-9.3%

fork_join/64

asio (callbacks)

1.91K ops/s

0.49%

baseline

fork_join_lockless/1

corosio (IOCP)

111.9K ops/s

0.30%

-10.6%

fork_join_lockless/1

asio (coroutines)

111.5K ops/s

0.62%

-10.9%

fork_join_lockless/1

asio (callbacks)

125.1K ops/s

0.41%

baseline

fork_join_lockless/16

corosio (IOCP)

7.34K ops/s

0.23%

-5.8%

fork_join_lockless/16

asio (coroutines)

6.99K ops/s

0.26%

-10.3%

fork_join_lockless/16

asio (callbacks)

7.79K ops/s

0.16%

baseline

fork_join_lockless/4

corosio (IOCP)

29.06K ops/s

0.25%

-6.8%

fork_join_lockless/4

asio (coroutines)

28.21K ops/s

0.38%

-9.6%

fork_join_lockless/4

asio (callbacks)

31.19K ops/s

0.30%

baseline

fork_join_lockless/64

corosio (IOCP)

1.83K ops/s

0.81%

-4.8%

fork_join_lockless/64

asio (coroutines)

1.73K ops/s

0.55%

-9.7%

fork_join_lockless/64

asio (callbacks)

1.92K ops/s

0.28%

baseline

nested/16

corosio (IOCP)

1.80K ops/s

0.72%

-6.1%

nested/16

asio (coroutines)

1.68K ops/s

0.50%

-12.0%

nested/16

asio (callbacks)

1.91K ops/s

0.16%

baseline

nested/4

corosio (IOCP)

7.20K ops/s

0.25%

-7.2%

nested/4

asio (coroutines)

6.66K ops/s

0.53%

-14.2%

nested/4

asio (callbacks)

7.77K ops/s

0.20%

baseline

nested_lockless/16

corosio (IOCP)

1.79K ops/s

0.52%

-6.0%

nested_lockless/16

asio (coroutines)

1.68K ops/s

0.18%

-12.0%

nested_lockless/16

asio (callbacks)

1.91K ops/s

0.23%

baseline

nested_lockless/4

corosio (IOCP)

7.21K ops/s

0.20%

-7.0%

nested_lockless/4

asio (coroutines)

6.67K ops/s

0.57%

-14.0%

nested_lockless/4

asio (callbacks)

7.76K ops/s

0.28%

baseline


http_server

Request/response throughput of a minimal HTTP/1.1 server exchanging a fixed small request and canned response over persistent TCP loopback connections.

http_server — Windows ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -7.5% -5% -2.5% +2.5% 0% concurrent/1 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. -2% concurrent/1 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/1 concurrent/16 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/16 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/16 concurrent/32 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/32 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/32 concurrent/4 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/4 — N client/server pairs run the single_conn request/response loop concurrently; N is the number of connections. concurrent/4 multithread/1 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/1 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/1 multithread/16 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. -6% multithread/16 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/16 multithread/2 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/2 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/2 multithread/4 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/4 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/4 multithread/8 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. multithread/8 — 32 client/server pairs share one context serviced by N threads running the context; N is the thread count. -2% multithread/8 single_conn — One client repeatedly sends a fixed small HTTP request to one server and reads the response. single_conn — One client repeatedly sends a fixed small HTTP request to one server and reads the response. single_conn single_conn_lockless — Same as single_conn, with the context in single-threaded lockless mode. single_conn_lockless — Same as single_conn, with the context in single-threaded lockless mode. -4% single_conn_lockless
Detailed results
Benchmark Implementation Median CV vs asio

concurrent/1

corosio (IOCP)

111.5K ops/s

0.60%

-1.6%

concurrent/1

asio (coroutines)

109.3K ops/s

0.44%

-3.6%

concurrent/1

asio (callbacks)

113.4K ops/s

0.42%

baseline

concurrent/16

corosio (IOCP)

108.2K ops/s

0.23%

-3.3%

concurrent/16

asio (coroutines)

107.8K ops/s

0.36%

-3.6%

concurrent/16

asio (callbacks)

111.8K ops/s

0.32%

baseline

concurrent/32

corosio (IOCP)

107.4K ops/s

0.86%

-3.4%

concurrent/32

asio (coroutines)

107.1K ops/s

0.40%

-3.7%

concurrent/32

asio (callbacks)

111.2K ops/s

0.17%

baseline

concurrent/4

corosio (IOCP)

108.8K ops/s

0.28%

-2.3%

concurrent/4

asio (coroutines)

107.7K ops/s

0.21%

-3.3%

concurrent/4

asio (callbacks)

111.4K ops/s

0.26%

baseline

multithread/1

corosio (IOCP)

107.5K ops/s

0.82%

-3.4%

multithread/1

asio (coroutines)

107.1K ops/s

0.45%

-3.8%

multithread/1

asio (callbacks)

111.3K ops/s

0.20%

baseline

multithread/16

corosio (IOCP)

264.7K ops/s

0.58%

-6.5%

multithread/16

asio (coroutines)

275.5K ops/s

0.50%

-2.7%

multithread/16

asio (callbacks)

283.1K ops/s

0.74%

baseline

multithread/2

corosio (IOCP)

179.2K ops/s

0.43%

-4.0%

multithread/2

asio (coroutines)

181.3K ops/s

0.16%

-2.9%

multithread/2

asio (callbacks)

186.7K ops/s

0.41%

baseline

multithread/4

corosio (IOCP)

223.7K ops/s

0.34%

-4.2%

multithread/4

asio (coroutines)

228.1K ops/s

0.81%

-2.4%

multithread/4

asio (callbacks)

233.6K ops/s

0.56%

baseline

multithread/8

corosio (IOCP)

263.6K ops/s

0.40%

-5.8%

multithread/8

asio (coroutines)

273.6K ops/s

0.74%

-2.2%

multithread/8

asio (callbacks)

279.8K ops/s

0.44%

baseline

single_conn

corosio (IOCP)

111.2K ops/s

0.57%

-1.9%

single_conn

asio (coroutines)

108.7K ops/s

0.44%

-4.0%

single_conn

asio (callbacks)

113.3K ops/s

0.48%

baseline

single_conn_lockless

corosio (IOCP)

111.4K ops/s

0.83%

-2.0%

single_conn_lockless

asio (coroutines)

109.0K ops/s

0.43%

-4.2%

single_conn_lockless

asio (callbacks)

113.7K ops/s

0.35%

baseline


socket_latency

Round-trip latency of a TCP loopback connection. Each sample is one full round trip (request out, reply back) across message sizes and concurrent pair counts.

socket_latency — Windows ↑ faster (lower mean latency) · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -20% -15% -10% -5% +5% 0% concurrent/1 — N independent 64-byte pingpong pairs run concurrently on one context; N is the number of connection pairs. concurrent/1 — N independent 64-byte pingpong pairs run concurrently on one context; N is the number of connection pairs. concurrent/1 concurrent/16 — N independent 64-byte pingpong pairs run concurrently on one context; N is the number of connection pairs. -14% concurrent/16 — N independent 64-byte pingpong pairs run concurrently on one context; N is the number of connection pairs. -14% concurrent/16 concurrent/4 — N independent 64-byte pingpong pairs run concurrently on one context; N is the number of connection pairs. concurrent/4 — N independent 64-byte pingpong pairs run concurrently on one context; N is the number of connection pairs. concurrent/4 concurrent_lockless/1 — Same as concurrent, with the context in single-threaded lockless mode; N is the number of connection pairs. concurrent_lockless/1 — Same as concurrent, with the context in single-threaded lockless mode; N is the number of connection pairs. concurrent_lockless/1 concurrent_lockless/16 — Same as concurrent, with the context in single-threaded lockless mode; N is the number of connection pairs. concurrent_lockless/16 — Same as concurrent, with the context in single-threaded lockless mode; N is the number of connection pairs. concurrent_lockless/16 concurrent_lockless/4 — Same as concurrent, with the context in single-threaded lockless mode; N is the number of connection pairs. -10% concurrent_lockless/4 — Same as concurrent, with the context in single-threaded lockless mode; N is the number of connection pairs. concurrent_lockless/4 pingpong/1 — One TCP connection ping-pongs a message client->server->client; N is the message size in bytes. pingpong/1 — One TCP connection ping-pongs a message client->server->client; N is the message size in bytes. pingpong/1 pingpong/1024 — One TCP connection ping-pongs a message client->server->client; N is the message size in bytes. pingpong/1024 — One TCP connection ping-pongs a message client->server->client; N is the message size in bytes. -6% pingpong/1024 pingpong/64 — One TCP connection ping-pongs a message client->server->client; N is the message size in bytes. pingpong/64 — One TCP connection ping-pongs a message client->server->client; N is the message size in bytes. pingpong/64 pingpong_lockless/1 — Same as pingpong, with the context in single-threaded lockless mode; N is the message size in bytes. pingpong_lockless/1 — Same as pingpong, with the context in single-threaded lockless mode; N is the message size in bytes. pingpong_lockless/1 pingpong_lockless/1024 — Same as pingpong, with the context in single-threaded lockless mode; N is the message size in bytes. pingpong_lockless/1024 — Same as pingpong, with the context in single-threaded lockless mode; N is the message size in bytes. pingpong_lockless/1024 pingpong_lockless/64 — Same as pingpong, with the context in single-threaded lockless mode; N is the message size in bytes. pingpong_lockless/64 — Same as pingpong, with the context in single-threaded lockless mode; N is the message size in bytes. pingpong_lockless/64
Detailed results
Benchmark Implementation Median CV vs asio

concurrent/1

corosio (IOCP)

7.68 µs

0.33%

-10.5%

concurrent/1

asio (coroutines)

7.40 µs

0.59%

-6.6%

concurrent/1

asio (callbacks)

6.94 µs

0.43%

baseline

concurrent/16

corosio (IOCP)

129.73 µs

5.22%

-14.1%

concurrent/16

asio (coroutines)

129.79 µs

5.72%

-14.2%

concurrent/16

asio (callbacks)

113.68 µs

2.88%

baseline

concurrent/4

corosio (IOCP)

30.69 µs

0.44%

-9.9%

concurrent/4

asio (coroutines)

29.64 µs

0.36%

-6.2%

concurrent/4

asio (callbacks)

27.91 µs

0.36%

baseline

concurrent_lockless/1

corosio (IOCP)

7.67 µs

0.22%

-10.6%

concurrent_lockless/1

asio (coroutines)

7.41 µs

0.46%

-6.8%

concurrent_lockless/1

asio (callbacks)

6.93 µs

0.46%

baseline

concurrent_lockless/16

corosio (IOCP)

122.61 µs

1.17%

-10.5%

concurrent_lockless/16

asio (coroutines)

119.58 µs

0.77%

-7.8%

concurrent_lockless/16

asio (callbacks)

110.95 µs

0.88%

baseline

concurrent_lockless/4

corosio (IOCP)

30.70 µs

0.47%

-9.8%

concurrent_lockless/4

asio (coroutines)

29.73 µs

0.44%

-6.3%

concurrent_lockless/4

asio (callbacks)

27.96 µs

0.40%

baseline

pingpong/1

corosio (IOCP)

7.65 µs

0.21%

-10.1%

pingpong/1

asio (coroutines)

7.39 µs

0.37%

-6.4%

pingpong/1

asio (callbacks)

6.95 µs

0.33%

baseline

pingpong/1024

corosio (IOCP)

7.77 µs

0.33%

-10.0%

pingpong/1024

asio (coroutines)

7.50 µs

0.47%

-6.1%

pingpong/1024

asio (callbacks)

7.06 µs

0.34%

baseline

pingpong/64

corosio (IOCP)

7.65 µs

0.50%

-10.2%

pingpong/64

asio (coroutines)

7.40 µs

0.27%

-6.7%

pingpong/64

asio (callbacks)

6.94 µs

0.48%

baseline

pingpong_lockless/1

corosio (IOCP)

7.64 µs

0.26%

-10.4%

pingpong_lockless/1

asio (coroutines)

7.37 µs

0.40%

-6.5%

pingpong_lockless/1

asio (callbacks)

6.92 µs

0.18%

baseline

pingpong_lockless/1024

corosio (IOCP)

7.79 µs

0.32%

-10.3%

pingpong_lockless/1024

asio (coroutines)

7.51 µs

0.49%

-6.4%

pingpong_lockless/1024

asio (callbacks)

7.06 µs

0.19%

baseline

pingpong_lockless/64

corosio (IOCP)

7.63 µs

0.23%

-9.9%

pingpong_lockless/64

asio (coroutines)

7.38 µs

0.25%

-6.2%

pingpong_lockless/64

asio (callbacks)

6.95 µs

0.47%

baseline


socket_throughput

Sustained byte throughput of a TCP loopback connection under continuous streaming, varying chunk size, direction, and concurrency.

socket_throughput — Windows, part 1 ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -10% -5% +5% +10% 0% bidirectional/1024 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/1024 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. -5% bidirectional/1024 bidirectional/1048576 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/1048576 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/1048576 bidirectional/16384 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/16384 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/16384 bidirectional/262144 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/262144 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/262144 bidirectional/4096 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. -4% bidirectional/4096 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/4096 bidirectional/65536 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/65536 — Both ends of the connection write and read simultaneously; N is the chunk size in bytes. bidirectional/65536 bidirectional_lockless/1024 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/1024 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/1024 bidirectional_lockless/1048576 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. +4% bidirectional_lockless/1048576 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. +3% bidirectional_lockless/1048576 bidirectional_lockless/16384 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/16384 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/16384 bidirectional_lockless/262144 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/262144 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/262144 bidirectional_lockless/4096 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/4096 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/4096 bidirectional_lockless/65536 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/65536 — Same as bidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. bidirectional_lockless/65536
Detailed results
Benchmark Implementation Median CV vs asio

bidirectional/1024

corosio (IOCP)

280.3 MB/s

0.54%

-3.7%

bidirectional/1024

asio (coroutines)

276.3 MB/s

0.40%

-5.1%

bidirectional/1024

asio (callbacks)

291.1 MB/s

0.42%

baseline

bidirectional/1048576

corosio (IOCP)

4.79 GB/s

8.63%

-2.4%

bidirectional/1048576

asio (coroutines)

4.70 GB/s

7.69%

-4.3%

bidirectional/1048576

asio (callbacks)

4.91 GB/s

15.51%

baseline

bidirectional/16384

corosio (IOCP)

3.75 GB/s

0.64%

-3.5%

bidirectional/16384

asio (coroutines)

3.72 GB/s

3.94%

-4.1%

bidirectional/16384

asio (callbacks)

3.88 GB/s

0.31%

baseline

bidirectional/262144

corosio (IOCP)

9.62 GB/s

0.76%

+0.7%

bidirectional/262144

asio (coroutines)

9.46 GB/s

8.09%

-1.0%

bidirectional/262144

asio (callbacks)

9.56 GB/s

0.31%

baseline

bidirectional/4096

corosio (IOCP)

1.08 GB/s

0.20%

-4.0%

bidirectional/4096

asio (coroutines)

1.07 GB/s

0.94%

-4.9%

bidirectional/4096

asio (callbacks)

1.12 GB/s

0.25%

baseline

bidirectional/65536

corosio (IOCP)

9.10 GB/s

1.67%

-2.8%

bidirectional/65536

asio (coroutines)

8.95 GB/s

9.04%

-4.3%

bidirectional/65536

asio (callbacks)

9.36 GB/s

0.30%

baseline

bidirectional_lockless/1024

corosio (IOCP)

279.8 MB/s

0.31%

-3.7%

bidirectional_lockless/1024

asio (coroutines)

277.3 MB/s

0.28%

-4.6%

bidirectional_lockless/1024

asio (callbacks)

290.6 MB/s

0.35%

baseline

bidirectional_lockless/1048576

corosio (IOCP)

5.17 GB/s

10.52%

+4.0%

bidirectional_lockless/1048576

asio (coroutines)

5.11 GB/s

10.91%

+2.8%

bidirectional_lockless/1048576

asio (callbacks)

4.98 GB/s

14.14%

baseline

bidirectional_lockless/16384

corosio (IOCP)

3.71 GB/s

0.65%

-3.4%

bidirectional_lockless/16384

asio (coroutines)

3.66 GB/s

1.07%

-4.6%

bidirectional_lockless/16384

asio (callbacks)

3.84 GB/s

0.39%

baseline

bidirectional_lockless/262144

corosio (IOCP)

9.78 GB/s

1.25%

-0.6%

bidirectional_lockless/262144

asio (coroutines)

9.77 GB/s

1.03%

-0.7%

bidirectional_lockless/262144

asio (callbacks)

9.84 GB/s

0.80%

baseline

bidirectional_lockless/4096

corosio (IOCP)

1.07 GB/s

0.39%

-3.7%

bidirectional_lockless/4096

asio (coroutines)

1.07 GB/s

0.26%

-4.1%

bidirectional_lockless/4096

asio (callbacks)

1.12 GB/s

0.40%

baseline

bidirectional_lockless/65536

corosio (IOCP)

8.95 GB/s

1.09%

-2.2%

bidirectional_lockless/65536

asio (coroutines)

8.83 GB/s

0.26%

-3.4%

bidirectional_lockless/65536

asio (callbacks)

9.14 GB/s

0.38%

baseline

socket_throughput — Windows, part 2 ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -3% -2% -1% +1% 0% multithread/2 — 32 bidirectional connection pairs share one context serviced by N threads running the context, with 64 KiB chunks; N is the thread count. -2% multithread/2 — 32 bidirectional connection pairs share one context serviced by N threads running the context, with 64 KiB chunks; N is the thread count. -2% multithread/2 multithread/4 — 32 bidirectional connection pairs share one context serviced by N threads running the context, with 64 KiB chunks; N is the thread count. -2% multithread/4 — 32 bidirectional connection pairs share one context serviced by N threads running the context, with 64 KiB chunks; N is the thread count. -1% multithread/4 multithread/8 — 32 bidirectional connection pairs share one context serviced by N threads running the context, with 64 KiB chunks; N is the thread count. -1% multithread/8 — 32 bidirectional connection pairs share one context serviced by N threads running the context, with 64 KiB chunks; N is the thread count. -1% multithread/8
Detailed results
Benchmark Implementation Median CV vs asio

multithread/2

corosio (IOCP)

12.62 GB/s

0.49%

-1.6%

multithread/2

asio (coroutines)

12.61 GB/s

0.52%

-1.6%

multithread/2

asio (callbacks)

12.82 GB/s

0.48%

baseline

multithread/4

corosio (IOCP)

16.90 GB/s

0.95%

-1.8%

multithread/4

asio (coroutines)

16.96 GB/s

0.62%

-1.5%

multithread/4

asio (callbacks)

17.21 GB/s

0.81%

baseline

multithread/8

corosio (IOCP)

18.48 GB/s

0.89%

-1.4%

multithread/8

asio (coroutines)

18.56 GB/s

0.79%

-1.0%

multithread/8

asio (callbacks)

18.74 GB/s

1.02%

baseline

socket_throughput — Windows, part 3 ↑ faster · dotted line = asio (callbacks) · backend = IOCP corosio asio (coroutines) -10% -5% +5% +10% 0% unidirectional/1024 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/1024 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/1024 unidirectional/1048576 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. -5% unidirectional/1048576 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/1048576 unidirectional/16384 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/16384 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/16384 unidirectional/262144 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/262144 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/262144 unidirectional/4096 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/4096 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/4096 unidirectional/65536 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/65536 — One writer streams to one reader as fast as possible; N is the write/read chunk size in bytes. unidirectional/65536 unidirectional_lockless/1024 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/1024 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/1024 unidirectional_lockless/1048576 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. +4% unidirectional_lockless/1048576 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. +2% unidirectional_lockless/1048576 unidirectional_lockless/16384 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/16384 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/16384 unidirectional_lockless/262144 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/262144 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/262144 unidirectional_lockless/4096 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/4096 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. -5% unidirectional_lockless/4096 unidirectional_lockless/65536 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/65536 — Same as unidirectional, with the context in single-threaded lockless mode; N is the chunk size in bytes. unidirectional_lockless/65536
Detailed results
Benchmark Implementation Median CV vs asio

unidirectional/1024

corosio (IOCP)

282.5 MB/s

0.55%

-4.0%

unidirectional/1024

asio (coroutines)

280.7 MB/s

0.55%

-4.6%

unidirectional/1024

asio (callbacks)

294.2 MB/s

0.48%

baseline

unidirectional/1048576

corosio (IOCP)

3.89 GB/s

5.98%

-4.9%

unidirectional/1048576

asio (coroutines)

3.92 GB/s

0.98%

-4.3%

unidirectional/1048576

asio (callbacks)

4.09 GB/s

4.53%

baseline

unidirectional/16384

corosio (IOCP)

3.78 GB/s

2.00%

-3.0%

unidirectional/16384

asio (coroutines)

3.74 GB/s

3.96%

-4.2%

unidirectional/16384

asio (callbacks)

3.90 GB/s

0.70%

baseline

unidirectional/262144

corosio (IOCP)

8.86 GB/s

4.84%

-1.7%

unidirectional/262144

asio (coroutines)

8.70 GB/s

6.80%

-3.5%

unidirectional/262144

asio (callbacks)

9.01 GB/s

2.72%

baseline

unidirectional/4096

corosio (IOCP)

1.09 GB/s

0.78%

-4.0%

unidirectional/4096

asio (coroutines)

1.08 GB/s

1.11%

-4.7%

unidirectional/4096

asio (callbacks)

1.13 GB/s

0.56%

baseline

unidirectional/65536

corosio (IOCP)

9.37 GB/s

0.89%

-0.5%

unidirectional/65536

asio (coroutines)

9.12 GB/s

9.16%

-3.1%

unidirectional/65536

asio (callbacks)

9.42 GB/s

1.79%

baseline

unidirectional_lockless/1024

corosio (IOCP)

283.8 MB/s

0.57%

-3.7%

unidirectional_lockless/1024

asio (coroutines)

281.2 MB/s

0.60%

-4.5%

unidirectional_lockless/1024

asio (callbacks)

294.6 MB/s

0.43%

baseline

unidirectional_lockless/1048576

corosio (IOCP)

4.46 GB/s

9.21%

+4.3%

unidirectional_lockless/1048576

asio (coroutines)

4.37 GB/s

7.57%

+2.1%

unidirectional_lockless/1048576

asio (callbacks)

4.28 GB/s

9.80%

baseline

unidirectional_lockless/16384

corosio (IOCP)

3.79 GB/s

0.59%

-2.9%

unidirectional_lockless/16384

asio (coroutines)

3.76 GB/s

4.30%

-3.7%

unidirectional_lockless/16384

asio (callbacks)

3.91 GB/s

4.68%

baseline

unidirectional_lockless/262144

corosio (IOCP)

9.84 GB/s

3.98%

-0.6%

unidirectional_lockless/262144

asio (coroutines)

9.63 GB/s

3.75%

-2.7%

unidirectional_lockless/262144

asio (callbacks)

9.90 GB/s

1.35%

baseline

unidirectional_lockless/4096

corosio (IOCP)

1.09 GB/s

0.34%

-4.0%

unidirectional_lockless/4096

asio (coroutines)

1.07 GB/s

1.20%

-5.0%

unidirectional_lockless/4096

asio (callbacks)

1.13 GB/s

0.45%

baseline

unidirectional_lockless/65536

corosio (IOCP)

9.39 GB/s

0.94%

-1.0%

unidirectional_lockless/65536

asio (coroutines)

9.29 GB/s

1.22%

-2.0%

unidirectional_lockless/65536

asio (callbacks)

9.49 GB/s

1.72%

baseline