Timings for random

Hal Murray hmurray at megapathdsl.net
Sat Jan 28 20:39:02 UTC 2017


Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Stdlib: 1000000 calls to rand() took 0.021 microseconds each
Sodium: 1000000 calls to randombytes_buf() took 0.367 microseconds each
OpenSSL: 1000000 calls to RAND_pseudo_bytes() took 0.630 microseconds each


Raspberry Pi 2
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 57.60
Stdlib: 1000000 calls to rand() took 0.161 microseconds each
Sodium: 1000000 calls to randombytes_buf() took 5.901 microseconds each
OpenSSL: 1000000 calls to RAND_pseudo_bytes() took 9.202 microseconds each

Those are in a timing loop, so round up for loading the cache.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list