Skip to content

Commit 05158f9

Browse files
authored
Merge pull request #615 from haytok/fix-benchmark-iperf3-net.sh
fix: benchmark pasta, not slirp4netns
2 parents 9319806 + a20deb3 commit 05158f9

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

docs/network.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ RootlessKit provides several drivers for providing network connectivity:
99
* `--net=lxc-user-nic`: use `lxc-user-nic` (experimental)
1010
* `--net=gvisor-tap-vsock`: use [gvisor-tap-vsock](https://github.com/containers/gvisor-tap-vsock) (experimental)
1111

12-
[Benchmark: iperf3 from the child to the parent (Apr 10, 2026)](https://github.com/rootless-containers/rootlesskit/actions/runs/24200485791/job/70642399211):
12+
[Benchmark: iperf3 from the child to the parent (Jul 26, 2026)](https://github.com/rootless-containers/rootlesskit/actions/runs/30191669102/job/89765864664):
1313

1414
| Driver | MTU=1500 | MTU=65520
1515
|---------------------------------------|------------|-------------
16-
|`slirp4netns` | 0.84 Gbps | 6.17 Gbps
17-
|`slirp4netns` (with sandbox + seccomp) | 0.80 Gbps | 6.19 Gbps
18-
|`vpnkit` | 0.10 Gbps |(Unsupported)
19-
|`pasta` | 0.87 Gbps | 6.48 Gbps
20-
|`gvisor-tap-vsock` | 1.55 Gbps | 5.40 Gbps
21-
|`lxc-user-nic` | 29.3 Gbps | 30.4 Gbps
22-
|(rootful veth) | (35.0 Gbps)| (36.2 Gbps)
16+
|`slirp4netns` | 1.69 Gbps | 8.11 Gbps
17+
|`slirp4netns` (with sandbox + seccomp) | 1.68 Gbps | 8.32 Gbps
18+
|`vpnkit` | 0.14 Gbps |(Unsupported)
19+
|`pasta` | 0.24 Gbps | 31.9 Gbps
20+
|`gvisor-tap-vsock` | 2.46 Gbps | 8.75 Gbps
21+
|`lxc-user-nic` | 49.1 Gbps | 50.7 Gbps
22+
|(rootful veth) | (49.3 Gbps)| (50.8 Gbps)
2323

2424
* To be documented: [`bypass4netns`](https://github.com/rootless-containers/bypass4netns) for native performance.
2525

hack/benchmark-iperf3-net.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
source $(realpath $(dirname $0))/common.inc.sh
33
function benchmark::iperf3::pasta() {
4-
INFO "[benchmark:iperf3] slirp4netns ($@)"
4+
INFO "[benchmark:iperf3] pasta ($@)"
55
statedir=$(mktemp -d)
66
if echo "$@" | grep -q -- --detach-netns; then
77
IPERF3C="nsenter -n${statedir}/netns $IPERF3C"
88
fi
99
set -x
10-
$ROOTLESSKIT --state-dir=$statedir --net=slirp4netns $@ -- $IPERF3C 10.0.2.2
10+
$ROOTLESSKIT --state-dir=$statedir --net=pasta $@ -- $IPERF3C 10.0.2.2
1111
set +x
1212
}
1313

0 commit comments

Comments
 (0)