Skip to content

Commit 02fd78b

Browse files
committed
add wrk2 and nano
1 parent cd89de4 commit 02fd78b

2 files changed

Lines changed: 49 additions & 45 deletions

File tree

Dockerfile

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
FROM debian:12.5-slim
1+
FROM debian:13.3-slim AS wrk2
2+
3+
RUN apt update \
4+
&& apt install -y \
5+
build-essential \
6+
libssl-dev \
7+
zlib1g-dev \
8+
git
9+
10+
RUN git clone https://github.com/giltene/wrk2.git \
11+
&& cd wrk2 \
12+
&& make
13+
14+
FROM debian:13.3-slim
15+
16+
COPY --from=wrk2 /wrk2/wrk /usr/local/bin/wrk2
217

318
RUN sed -i -e 's/main/main non-free non-free-firmware/g' /etc/apt/sources.list.d/debian.sources \
4-
&& apt-get update && apt-get install -y \
5-
nano \
19+
&& apt update \
20+
&& apt install -y \
21+
vim \
622
wrk \
723
curl \
824
iperf \

README.md

Lines changed: 30 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The container is available at [DockerHub](https://hub.docker.com/r/tomopiro/netp
1313
## What's in the contaienr
1414

1515
- [**wrk**](https://github.com/wg/wrk)
16+
- [**wrk2**](https://github.com/giltene/wrk2)
1617
- [**iperf2**](https://sourceforge.net/projects/iperf2/)
1718
- [**iperf3**](https://github.com/esnet/iperf)
1819
- [**netperf**](https://github.com/HewlettPackard/netperf)
@@ -27,7 +28,9 @@ See the [Iperf 2 & Iperf 3 Comparison Table](https://iperf2.sourceforge.io/Iperf
2728
- CMD is `/bin/bash`.
2829
- Installed tools are
2930
- nano
31+
- vim
3032
- wrk
33+
- wrk2
3134
- curl
3235
- netperf
3336
- iperf2
@@ -47,22 +50,17 @@ Official documentation can be found at [iperf.fr](https://iperf.fr/iperf-doc.php
4750
`iperf` command is installed in the PATH.
4851

4952
1. Create a test network that connect servfer and client.
50-
51-
```bash
52-
docker network create netperf
53-
```
54-
53+
```bash
54+
docker network create netperf
55+
```
5556
2. Run an iperf2 server.
56-
57-
```bash
58-
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf -s
59-
```
60-
57+
```bash
58+
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf -s
59+
```
6160
3. Run iperf2 client and check performance.
62-
63-
```bash
64-
docker run -it --rm --network netperf tomopiro/netperf iperf -c netperf
65-
```
61+
```bash
62+
docker run -it --rm --network netperf tomopiro/netperf iperf -c netperf
63+
```
6664

6765
### iperf3
6866

@@ -71,22 +69,17 @@ Official documentation can be found at [iperf.fr](https://iperf.fr/iperf-doc.php
7169
`iperf3` command is installed in the PATH.
7270

7371
1. Create a test network that connect servfer and client.
74-
75-
```bash
76-
docker network create netperf
77-
```
78-
72+
```bash
73+
docker network create netperf
74+
```
7975
2. Run an iperf3 server.
80-
81-
```bash
82-
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf3 -s
83-
```
84-
76+
```bash
77+
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf3 -s
78+
```
8579
3. Run iperf3 client and check performance.
86-
87-
```bash
88-
docker run -it --rm --network netperf tomopiro/netperf iperf3 -c netperf
89-
```
80+
```bash
81+
docker run -it --rm --network netperf tomopiro/netperf iperf3 -c netperf
82+
```
9083

9184
### netperf
9285

@@ -95,19 +88,14 @@ Official documentation can be found at [Care and Feeding of Netperf 2.7.X](https
9588
`netperf` command is installed in the PATH.
9689

9790
1. Create a test network that connect servfer and client.
98-
99-
```bash
100-
docker network create netperf
101-
```
102-
91+
```bash
92+
docker network create netperf
93+
```
10394
2. Run a netperf server.
104-
105-
```bash
106-
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf netserver -D -L 0.0.0.0
107-
```
108-
95+
```bash
96+
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf netserver -D -L 0.0.0.0
97+
```
10998
3. Run netperf client and check performance.
110-
111-
```bash
112-
docker run -it --rm --network netperf tomopiro/netperf netperf -H netperf
113-
```
99+
```bash
100+
docker run -it --rm --network netperf tomopiro/netperf netperf -H netperf
101+
```

0 commit comments

Comments
 (0)