run_real.py 376 B

123456789101112
  1. from subprocess import call
  2. import time
  3. with open("real_execution_time", 'w') as f:
  4. for _ in range(100):
  5. start = time.time()
  6. call(["pypy", "-m", "pytest", "integration/test_powerwindow.py", "-k", "fast", "-x"])
  7. print("Time to execute: " + str(time.time() - start))
  8. f.write(str(time.time() - start))
  9. f.write("\n")
  10. f.flush()