Skip to content

Instantly share code, notes, and snippets.

@token0
Last active February 15, 2022 17:34
Show Gist options
  • Save token0/37921c4337f0fc69716ddf25df77df88 to your computer and use it in GitHub Desktop.
Save token0/37921c4337f0fc69716ddf25df77df88 to your computer and use it in GitHub Desktop.
/dev/urandom performance

Simple benchmark of default entropy source performance on various CPUs

Reading 1000 MiB from entropy pool


Xiaomi MI-R3G @ Padavan (Linux 3.4.113):

system type             : MediaTek MT7621 SoC
cpu model               : MIPS 1004Kc V2.15
BogoMIPS                : 583.68

time dd if=/dev/urandom of=/dev/null bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1000.0MB) copied, 1053.273348 seconds, 972.2 KB/s

0.00 user
1053.27 system
17:33.38 elapsed

Asus RT-N16 @ OpenWRT 21.02.1:

system type             : Broadcom BCM4716
cpu model               : MIPS 74Kc V4.0
BogoMIPS                : 239.10

time dd if=/dev/urandom of=/dev/null bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 55.18 s, 18.1 MB/s

real    0m 55.18s
user    0m 0.02s
sys     0m 54.86s

Oracle VPS on AMD Epyc @ Ubuntu 20.04.3 LTS :

model name      : AMD EPYC 7551 32-Core Processor (only 2 cores for VPS)
bogomips        : 3992.48

time dd if=/dev/urandom of=/dev/null bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 35.9716 s, 29.2 MB/s

real    0m35.975s
user    0m0.000s
sys     0m35.963s

Pine64 Rock64 2GB @ Armbian 21.08.6 Buster with Linux 5.10.63-rockchip64:

CPU: RockChip RK3328 aarch64 4-core CortexA53

time dd if=/dev/random of=/dev/null bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 16.9884 s, 61.7 MB/s

real    0m16.995s
user    0m0.000s
sys     0m16.991s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment