From fb3e96a333cc9b27529f5d2c7866a2f7c4d43ec2 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Wed, 13 Jun 2018 15:08:11 +0100 Subject: Add cache capacity command line option --- src/main/evaluation/benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/evaluation/benchmark.cpp') diff --git a/src/main/evaluation/benchmark.cpp b/src/main/evaluation/benchmark.cpp index 42fff9d..367caf5 100644 --- a/src/main/evaluation/benchmark.cpp +++ b/src/main/evaluation/benchmark.cpp @@ -13,7 +13,7 @@ using namespace std; typedef chrono::microseconds microsec; -void benchmark::run(const sol_rules &rules) { +void benchmark::run(const sol_rules &rules, uint64_t cache_capacity) { cout << "Seed " "| Median/Mean Solution Time(μs)" "| Median/Mean States Searched " @@ -28,7 +28,7 @@ void benchmark::run(const sol_rules &rules) { for(int seed = 1; seed <= 1000; seed++) { game_state gs(rules, seed); - solver sol(gs); + solver sol(gs, cache_capacity); auto start = chrono::steady_clock::now(); solver::sol_state result = sol.run(); -- cgit v1.2.1