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.

CommandMean [ms]Min [ms]Max [ms]Relative
qft send ip <IP> -p <PORT> -f 7mb.json895 ± 527669351.31 ± 0.11
qft send ip <IP> -p <PORT> -f 7mb.json lz4486 ± 604045841.03 ± 0.09
qft send ip <IP> -p <PORT> -f 7mb.json gzip444 ± 1203256851.00
nc -N <IP> <PORT> < 7mb.json1049 ± 8103610561.42 ± 0.12

scp-like mode

CommandMean [ms]Min [ms]Max [ms]Relative
qft ssh 7mb.json <user>@<IP>:~/7mb.json2.295 ± 0.1312.1082.3991.14 ± 0.10
qft ssh 7mb.json <user>@<IP>:~/7mb.json lz42.004 ± 0.1221.7972.1941.00
qft ssh 7mb.json <user>@<IP>:~/7mb.json gzip 42.026 ± 0.1201.8472.1221.01 ± 0.09
scp 7mb.json <user>@<IP>:~/7mb.json2.448 ± 0.0392.4042.5321.22 ± 0.08