Comparison/Benchmarks
Benchmarks are done with hyperfine
default settings.
Using a 7.2 MiB JSON-file (not prettified) I had nearby with real data.
Targeting a Raspberry Pi Zero W
that is connected with ethernet to a gigabit network.
netcat-like mode
The RPI-0W was running qft listen -p <PORT> --output 7mb.json
and nc -l <PORT> > 7mb.json
on repeat for the duration of the benchmark.
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
qft send ip <IP> -p <PORT> -f 7mb.json | 895 ± 52 | 766 | 935 | 1.31 ± 0.11 |
qft send ip <IP> -p <PORT> -f 7mb.json lz4 | 486 ± 60 | 404 | 584 | 1.03 ± 0.09 |
qft send ip <IP> -p <PORT> -f 7mb.json gzip | 444 ± 120 | 325 | 685 | 1.00 |
nc -N <IP> <PORT> < 7mb.json | 1049 ± 8 | 1036 | 1056 | 1.42 ± 0.12 |
scp-like mode
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
qft ssh 7mb.json <user>@<IP>:~/7mb.json | 2.295 ± 0.131 | 2.108 | 2.399 | 1.14 ± 0.10 |
qft ssh 7mb.json <user>@<IP>:~/7mb.json lz4 | 2.004 ± 0.122 | 1.797 | 2.194 | 1.00 |
qft ssh 7mb.json <user>@<IP>:~/7mb.json gzip 4 | 2.026 ± 0.120 | 1.847 | 2.122 | 1.01 ± 0.09 |
scp 7mb.json <user>@<IP>:~/7mb.json | 2.448 ± 0.039 | 2.404 | 2.532 | 1.22 ± 0.08 |