The next benchmarks measure speed of main, USB and network drives, with details, and results provided in:
http://www.roylongbottom.org.uk/Raspber ... hmarks.htm
The benchmark’s first test is to measure writing and reading MB/second of three large files. The default sizes are 8 and 16 MB, but can be changed in the run time command. The second set of measurements are random reading and writing times, in milliseconds, of 1 KB blocks out of 4, 8 and 16 MB. The final test writes and reads 200 small files of 4, 8 and 16 KB, measured in MB/second and milliseconds per file.
In case anyone wants to run them, the benchmarks are DriveSpeed and LanSpeed found in:
http://www.roylongbottom.org.uk/Raspber ... hmarks.zip
With the benchmarks in a test folder, terminal commands are;
Code: Select all
Main Drive
test $ ./DriveSpeed
USB Drive
Path via Menu - Go, Devices, Click USB Icon, Address Bar
test $ ./DriveSpeed FilePath /media/pi/BLUE
Network (In my Case with For using d:/Test)
Windows Command Prompt ipconfig command = 192.168.1.68
test $ sudo mount -t cifs -o dir_mode=0777,file_mode=0777 //192.168.1.68/d /media/pi
Enter password
test $ ./LanSpeed FilePath /media/pi/Test
.
Large Files - The SD card is Class 10 that is supposed to write at at a minimum of 10 MB/s but varies and can be less. The USB drive is a modern class less 8 GB drive - see htm report for drives with much faster writing speeds. LAN speed is as expected for 100 Mbps connection. Note how much slower wi-fi is.
Random Access - SDs are faster than hard drives. This SD is faster than USB drive. LAN reading is mainly from remote disk drive’s buffer. Wi-fi is, again, much slower.
Small Files - Average running time might be expected to increase with file size, but there is a lot of variability. Again, Wi-Fi can be particularly slow.
Code: Select all
MB/second 16 MB files
Boot
Large Write1 Write2 Write3 Read1 Read2 Read3
SD Main 8.7 7.3 11.0 16.9 22.9 23.1
USB2 10.6 4.8 3.7 35.0 35.6 34.8
LAN 11.4 11.4 11.4 11.7 11.7 11.7
WiFi 2.7 3.2 2.6 1.6 1.5 0.8
Random milliseconds
Read Write
From MB 4 8 16 4 8 16
SD Main 0.460 0.450 0.400 1.68 2.60 1.77
USB2 0.717 0.771 0.797 1.94 2.38 2.41
LAN 0.459 0.864 0.743 3.47 2.77 3.16
WiFi 7.178 10.447 7.784 11.18 9.79 8.99
Milliseconds per file
Write Read Delete
File KB 4 8 16 4 8 16 Seconds
SD Main 4.39 1.75 3.83 0.54 0.70 1.09 0.019
USB2 7.24 9.12 12.72 0.64 0.74 0.63 0.012
LAN 4.39 4.66 5.39 1.79 2.31 3.29 0.33
WiFi 30.22 34.09 53.57 36.84 22.94 40.33 3.13
Measuring data transfer speeds of my new broadband, from the Raspberry Pi 3, indicates download and upload speeds of 58 and 10.7 Mbps via LAN, with 11.3 and 7.7 using Wi-Fi.
I have an on-line test facility, for measuring loading time of images, via buttons in the following:
http://www.roylongbottom.org.uk/online%20benchmarks.htm
For broadband, the larger images should be selected, comprising 1 MB BMP, GIF and JPG files, plus 400 tiny GIF files. Pixel dimensions of the large files are 667 x 500 , 1766 x 1325 and 2048 x 1536. The images can be re-read via the browser’s refresh option, to avoid initial loading overheads. Results are provided for the range of loading times after the first (should be revised for high speed broadband).
The following loading times are for the RPi 3 LAN and Wi-Fi, a desktop PC and a new mobile phone, then some using earlier broadband. Performance of the first batch is quite similar, except for the large files via RPi Wi-Fi. For these large files, the new broadband can be more than ten times faster, but is much slower downloading numerous tiny files (Is this a package size issue?).
Code: Select all
Broadband Seconds Loading Time
400
BMP GIF JPG Small
LAN 0.1 - 0.2 0.1 - 0.1 0.2 - 0.2 13.8 - 18.0
Wi-Fi 0.9 - 0.9 0.5 - 0.7 0.5 - 0.6 13.4 - 16.8
PC 0.1 - 0.1 0.1 - 0.1 0.1 - 0.1 9.5 - 19.9
Mobile 0.1 - 0.2 0.1 - 0.2 0.1 - 0.1 11.7 - 16.9
Slow Broadband
PC 1.5 1.8 1.7 5.1 - 7.5
Lap Wi-Fi 1.4 1.5 1.5 9.2 - 13.5