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
- memory_hash=$(for i in {1..$steps}; do cat $blob_path; done | md5sum )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement