Advertisement
Guest User

avg.ps1

a guest
Nov 13th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $tcc_avg=0
  2. $gcc_avg=0
  3.  
  4. $times = 1000
  5.  
  6. For($i=0; $i -lt $times; $i++){
  7.     $tcc_avg += (Measure-Command { ./bccT afile.bc }).TotalMilliseconds
  8.     $gcc_avg += (Measure-Command { ./bccG afile.bc }).TotalMilliseconds
  9. }
  10.  
  11. $tcc_avg /= $times
  12. $gcc_avg /= $times
  13.  
  14. (echo "tcc = $tcc_avg")
  15.  
  16. (echo "gcc = $gcc_avg")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement