Skip to content

Instantly share code, notes, and snippets.

@chadbrewbaker
Created January 26, 2019 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadbrewbaker/bc4df1bfcb86346adb64f6834433cf3a to your computer and use it in GitHub Desktop.
Save chadbrewbaker/bc4df1bfcb86346adb64f6834433cf3a to your computer and use it in GitHub Desktop.
benchmark all the things in the directories without xargs shenanigans
import os
import time
for root, dirs, files in os.walk("."):
for file in files:
if file.endswith(".smt2"):
start = time.time()
if os.system("gtimeout 5 cvc4 "+ file) == 0:
end = time.time()
os.system("echo " print file + ", " + str(end-start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment