teddy-dbear | Morning peoples, critters and everything else | 09:55 |
---|---|---|
ChinnoDog | I need a simple command to benchmark single threaded CPU performance. Anyone have one? I don't have access to any benchmarking utils. | 20:38 |
ChinnoDog | Someone tell me how long this takes: time for i in {1..10}; do sha256sum 2&>/dev/null <<< $(dd if=/dev/random bs=1M count=128); done | 20:57 |
ChinnoDog | It takes about 1s on my 4 year old laptop. | 21:02 |
waltman | It's nearly instantaneous on my mac, and hangs on my newish desktop. | 22:26 |
waltman | I think on linux /dev/random needs entropy | 22:29 |
waltman | Did you run that on ubuntu? | 22:32 |
ChinnoDog | Yes, on Ubuntu. I should have used urandom. /dev/random is slow in virtual machines. | 23:42 |
ChinnoDog | Also I realized I could have written a simpler statement and just adjusted the size of the random data without increasing the memory requirement. | 23:44 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!