Christian Heimes added the comment: Improved benchmark script:
Loops: 500000 1 4 8 16 32 64 128 urandom (fd) 0.091 0.185 0.306 0.544 1.060 1.989 3.876 urandom (fd, no buf) 0.504 0.502 0.502 0.806 1.398 2.324 4.086 os.urandom() 1.155 1.154 1.154 1.498 2.052 2.975 4.910 RAND_pseudo_bytes 0.436 0.436 0.435 0.555 0.753 1.064 1.664 RAND_bytes 0.412 0.417 0.417 0.534 0.741 1.046 1.708 ---------- Added file: http://bugs.python.org/file31428/prng.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18811> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com