Skip to content

Instantly share code, notes, and snippets.

@R-Goc
R-Goc / gist:cfc91fb86aa21332576844118866174e
Created October 27, 2025 17:31
native csprng vs rand_bytes windows.
------ Starting benchmark ------
------ Running bench for block size: 1KiB -------
Running native PRNG:
Mean runtime is: 0.27511809
Mean throughput is: 3.634802785960022 GB/s
Running openssl rand_bytes:
Mean runtime is: 0.35842872000000003
Mean throughput is: 2.7899550013737735 GB/s
------ Running bench for block size: 4KiB -------
Running native PRNG: