Created
January 26, 2019 17:32
-
-
Save chadbrewbaker/bc4df1bfcb86346adb64f6834433cf3a to your computer and use it in GitHub Desktop.
benchmark all the things in the directories without xargs shenanigans
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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