Hi community
I have tried to use FreeBSD 12.1 on my Pi3 and found out that it works two times slowly then Raspbian Linux for the same tasks. Here is the results below.
p.s. I think it happens because the FreeBSD does not switch the CPU to "Turbo" mode and as a fact it works really slow.
"my_test" looks inside like this:
p.s. This is a simple benchmark which tests the CPU and memory in the same time.
I have tried to use FreeBSD 12.1 on my Pi3 and found out that it works two times slowly then Raspbian Linux for the same tasks. Here is the results below.
p.s. I think it happens because the FreeBSD does not switch the CPU to "Turbo" mode and as a fact it works really slow.
Code:
[user@freebsd4pi ~]$ uname -a
FreeBSD freebsd4pi.home 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64
[user@freebsd4pi ~/_test]$ ./my_test
1048576+0 records in
1048576+0 records out
1073741824 bytes transferred in 137.195754 secs (7826349 bytes/sec)
Execution time: 137 seconds.
[user@freebsd4pi ~]$ python --version
Python 3.7.7
[user@generic ~/_bench_lang]$ time python ./bench.py
Python bench.
[3, 4, 1, 3, 5, 1, 92, 2, 4124, 424, 52, 12]
[1, 1, 2, 3, 3, 4, 5, 12, 52, 92, 424, 4124]
real 0m57.174s
user 0m57.135s
sys 0m0.033s
-------------------------------------------
pi@raspberrypi:~/_test $ uname -a
Linux raspberrypi 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux
pi@raspberrypi:~/_test $ ./my_test
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 86.8891 s, 12.4 MB/s
Execution time: 87 seconds.
pi@raspberrypi:~/_bench_lang $ python --version
Python 2.7.16
pi@raspberrypi:~/_bench_lang $ time python ./bench.py
Python bench.
[3, 4, 1, 3, 5, 1, 92, 2, 4124, 424, 52, 12]
[1, 1, 2, 3, 3, 4, 5, 12, 52, 92, 424, 4124]
real 0m17.224s
user 0m17.070s
sys 0m0.040s
"my_test" looks inside like this:
Code:
#!/bin/sh
START=$(date +%s)
#fix start time
#start archivate process
dd bs=1k count=1M if=/dev/urandom | pigz -p 8 - > /dev/null
END=$(date +%s)
DIFF=$(( $END - $START ))
echo "Execution time: $DIFF seconds."
p.s. This is a simple benchmark which tests the CPU and memory in the same time.
Last edited by a moderator: