benchmark.sh 642 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. printf "benchmark.sh on $(date)\n\n\n" > bandwidth_perf.log
  3. run() {
  4. echo "$(date) build/test $1 $2 $3 $4"
  5. { /usr/bin/time -f "%U user %S system %E(%e s) elapsed %P CPU\n(%Xtext+%Ddata %Mmax)k\n%I inputs + %O outputs (%F major + %R minor)pagefaults %W swaps" build/test $1 $2 $3 $4 ; } 2>> bandwith_perf.log | \
  6. head -n 110 | tee -a bandwidth_perf.log
  7. printf "\n\n" >> bandwidth_perf.log
  8. }
  9. run 1 100 4 100
  10. run 2 100 4 100
  11. run 3 100 4 100
  12. run 3 100 1 100
  13. run 3 100 2 100
  14. run 3 100 4 100
  15. run 3 100 8 100
  16. run 3 100 16 100
  17. run 3 100 32 100
  18. run 3 10000 4 1
  19. run 3 1000 4 10
  20. run 3 100 4 100
  21. run 3 10 4 1000
  22. run 3 1 1 10000