https://github.com/oditynet/genrandom
C++ psevdo random chars
https://github.com/oditynet/genrandom
Last synced: about 1 year ago
JSON representation
C++ psevdo random chars
- Host: GitHub
- URL: https://github.com/oditynet/genrandom
- Owner: oditynet
- Created: 2024-07-29T06:40:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T06:56:49.000Z (almost 2 years ago)
- Last Synced: 2024-07-29T08:11:51.419Z (almost 2 years ago)
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Псевдогенератор rundom символов. Обгоняет работу /dev/urandom
Анализ скорости записи рандомных чисел относительно размера буфера в секунду:
```
for i in 16 32 64 128 256 512 1024 2048 4096 8000 16000 32000 640000;do echo $i;timeout 1 ./genrand $i;ls -lh /tmp/1|awk '{print $5 " "$NF}';done
16
247M /tmp/1
32
59M /tmp/1
64
5,5M /tmp/1
128
40M /tmp/1
256
188M /tmp/1
512
256M /tmp/1
1024
300M /tmp/1
2048
344M /tmp/1
4096
368M /tmp/1
8000
372M /tmp/1
16000
399M /tmp/1
32000
395M /tmp/1
640000
406M /tmp/1
```
Run: ./genrand
or
./genrand 256