diff options
| author | Charlie Blake | 2018-06-13 15:38:20 +0100 |
|---|---|---|
| committer | GitHub | 2018-06-13 15:38:20 +0100 |
| commit | ccb1232a48deef855d0e0f3ea0f69382494975cc (patch) | |
| tree | bcc8fe29ea84abbd6682c1a880064a90dd65f959 /src/main/evaluation/benchmark.cpp | |
| parent | Merge pull request #59 from thecharlesblake/paper-tidy-up (diff) | |
| parent | Add default cache capacity of 100,000,000 (diff) | |
| download | metasol-ccb1232a48deef855d0e0f3ea0f69382494975cc.tar.gz metasol-ccb1232a48deef855d0e0f3ea0f69382494975cc.zip | |
Merge pull request #60 from thecharlesblake/cache-mem-limit
Cache mem limit
Diffstat (limited to 'src/main/evaluation/benchmark.cpp')
| -rw-r--r-- | src/main/evaluation/benchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
