sync-test.sh 333 B

12345678910111213
  1. #!/bin/bash
  2. SEEDS="$1"
  3. MAX_SEED=$(($SEEDS - 1))
  4. P="$2"
  5. shift 2
  6. echo "n seeds : $SEEDS"
  7. echo "ber-test args : $@"
  8. echo "params : $P"
  9. for seed in $(seq 0 $MAX_SEED)
  10. do
  11. echo $(AWM_SEEDS=$seed AWM_PARAMS="$P" AWM_REPORT="sync" ber-test.sh "$@")
  12. done | awk '{bad += $1; files += $2; print bad, files, bad * 100. / files }'