Code:
sudo apt update;sudo apt install agnostics
The following NEW packages will be installed:
agnostics fio ibverbs-providers libaio1 libboost-atomic1.67.0 libboost-iostreams1.67.0 libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libgfapi0 libgfrpc0 libgfxdr0
libglusterfs0 libibverbs1 libnuma1 librados2 librbd1 librdmacm1
0 upgraded, 18 newly installed, 0 to remove and 74 not upgraded.
Need to get 15.4 MB of archives.
After this operation, 38.6 MB of additional disk space will be used.
The tool can be accessed via Raspbian menu. Following command also works:

Code:
sh /usr/share/agnostics/sdtest.sh
Run 1
prepare-file;0;0;324435;633
seq-write;0;0;327680;640
rand-4k-write;0;0;69276;17319
rand-4k-read;53455;13363;0;0
Sequential write speed 327680 kb/s (target 10000) - PASS
Random write speed 17319 IOPS (target 500) - PASS
Random read speed 13363 IOPS (target 1500) - PASS
(above result is Samsung EVO 850 SSD)