Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # USAGE:
- # ./speed_test.sh /path/to/my/file /path/to/destination number_of_tests
- NUM_TESTs=$3
- SUM=0
- for i in$(seq 1 $NUM_TESTs); do
- REC=`ddif=$1 of=$22>some_random_file_ ; catsome_random_file_|cut -d " " -f8 |tail -1`
- SUM=`echo$SUM + $REC|bc`
- done
- RESULT=`echo$SUM / $NUM_TESTs|bc|awk'{ str1=str1 __g5_token59eb831783d05 }END{ print str1 }'`
- echo$RESULT MB/s
- #clean up
- rmsome_random_file_
- rm$2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement