Advertisement
Guest User

Untitled

a guest
Feb 13th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for i in {1..16}
  4. do
  5. TOTAL=0
  6. for trial in {1..15}
  7. do
  8. RESULT=$(./prog --workers $i --iterations 20 --clusters 16 --input random-n65536-d32-c16.txt --threshold 0.0000001f)
  9. TOTAL=$(echo "$TOTAL $RESULT" | awk '{print $1 + $2}')
  10. done
  11. TOTAL=$(echo "$TOTAL 15" | awk '{print $1/$2}')
  12. echo $TOTAL
  13. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement