Add urandom_test.sh

This commit is contained in:
kingToolbox 2019-10-11 18:42:08 +00:00 committed by GitHub
parent 37835a056a
commit 831db78af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,6 @@
# Generate 100MB data.
if [ ! -f "./benchmark_randomdata" ];then
cat /dev/urandom | base64 | dd of=./benchmark_randomdata bs=1024 count=100KB
fi
echo "Benchmark Result:"
{ time dd if=./benchmark_randomdata bs=10240; }