aboutsummaryrefslogtreecommitdiff
path: root/benchmark.py
diff options
context:
space:
mode:
authorCharlie Blake2018-01-30 19:51:38 +0000
committerGitHub2018-01-30 19:51:38 +0000
commit2fc005bdbb4707810ad0ae36a6863e70f0ff91b5 (patch)
tree59ca3063ffe6a876d27c96ea95d6a3683273675a /benchmark.py
parentMerge pull request #31 from thecharlesblake/profiling-fix (diff)
parentAdd ORDER_ON_CACHE to benchmark script (diff)
downloadmetasol-2fc005bdbb4707810ad0ae36a6863e70f0ff91b5.tar.gz
metasol-2fc005bdbb4707810ad0ae36a6863e70f0ff91b5.zip

Merge pull request #32 from thecharlesblake/piles-always-sorted

Piles always sorted

Diffstat (limited to 'benchmark.py')
-rw-r--r--benchmark.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark.py b/benchmark.py
index 905d960..0031ef3 100644
--- a/benchmark.py
+++ b/benchmark.py
@@ -23,6 +23,12 @@ if (len(sys.argv) >= 2
flag = "-simple-hash"
print("Running in simple-hash mode...")
+flag = ""
+if (len(sys.argv) >= 2
+ and (sys.argv[1] == "--order-on-cache" or sys.argv[1] == "-oc")):
+ flag = "-order-on-cache"
+ print("Running in order-on-cache mode...")
+
class SolitaireRulesGen(metaclass=ABCMeta):
def __init__(self, name):