Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # vars
- blob_size=1024
- test_size=262144000
- steps=$(($test_size / $blob_size))
- blob_path=/tmp/random.blob
- # create random blob
- dd if=/dev/urandom bs=$blob_size count=1 of=$blob_path
- # create memory hash
- counter=0
- while [ $counter -lt $steps ]; do
- cat $blob_path | md5sum
- let counter = counter + 1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement