Open carlosperate opened 6 months ago
Been looking into this and there are a few things to take in consideration.
versatilepb
qemu machine configuration
raspi
machine types, and the kernel and device tree that come with the Pi OS images
versatilepb
machine, the virt
machine type can be used with a custom kernel, but more RAM
Added in commit: 49c922b8b9e30984767105cd8b9be960732ae095
RAM | speedtest download | speedtest upload | cpu test single thread | cpu test 4 threads | disk write | |
---|---|---|---|---|---|---|
qemu versatilepb | 256 MB | 3.33 Mbit/s | 6.84 Mbit/s | 13 s | 12 s | 18 s |
qemu virt | 1 GB | 10.31 Mbit/s | 10.75 Mbit/s | 10 s | 4 s | 14 s |
Compared with
versatilepb
+ dhruvvyas90/qemu-rpi-kernel.The total values are not important in this case, as these are for comparison against each other. All done on the same machine with the same internet connection, docker on x86 mac (so the container itself is running inside a linux vm):
Speedtest:
speedtest-cli --secure
cpu single thread:sysbench --num-threads=1 --validate=on --test=cpu --cpu-max-prime=1000 run
cpu 4 threads:sysbench --num-threads=4 --validate=on --test=cpu --cpu-max-prime=1000 run
disk write:dd if=/dev/zero of=~/test.tmp bs=1M count=256 conv=fsync
https://github.com/carlosperate/docker-qemu-rpi-os/blob/37ac36b820cf98f1da1acf61d1ffc27fcf1de978/benchmark-vm.py#L96-L118