Skip to content

H. Testing our configuration

Bogdan Tudorache edited this page Jan 16, 2021 · 32 revisions

A. Internet speed test

We must install speedtest-cli.

$pip install speedtest-cli

speedtest

$speedtest-cli --share

Speedtest_result

Share the results! 🥇

share_results

B. Storage Drive

Or in our case micro SD card, but it can also be SSD, HDD, flash, the commands are the same.

B.1. CLI

We will run the following command lines either via terminal or via ssh.

Server throughput - write speed

$ dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync

Server latency

$ dd if=/dev/zero of=/tmp/test2.img bs=512 count=1000 oflag=dsync

results:

write_speed_latency

B.2. Disks

We can also use the built in utility that Ubuntu offers. Search for Disks , choose your drive (in our case SD card reader), click on the Settings icon, then Benchmark Partition....

Benchmark:

benchmark

Test results:

test_results

C. CPU

This can be done in two ways, either by benchmark or by stress test.

We will be using 7-Zip which is a file compression tool that can do extreme levels of compression on files and store them in a reduced size 7z archive format. 7-Zip comes with a built-in option to run LZMA compression benchmarks for measuring CPU performance.

Installing 7-Zip:

$ sudo apt install p7zip-full

To run a single thread benchmark test:

$ 7z b -mmt1

Results:

single_thread_cpu_benchmark

Multi-threaded benchmarking can be run by using the following command:

$ 7z b

Results:

multi_thread_cpu_benchmark

These results are in million instructions per second (MIPS). And you can compare them with the results of other CPU models on the 7-Zip official page.