Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int main(int argc, char* argv[]) {
std::cout << "Running benchmark..." << std::endl;

// 2. Perform searches
AStarSearch<MapSearchNode> astarsearch;
AStarSearch<MapSearchNode> astarsearch((MAP_WIDTH * MAP_HEIGHT) + 1);

unsigned int successes = 0;
unsigned int failures = 0;
Expand Down
4 changes: 2 additions & 2 deletions bench/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def main():
# 1. Checkout commit
run_cmd(f"git checkout {commit_hash}")

# 2. Inject modern bench.cpp
run_cmd("cp /tmp/new_bench.cpp bench.cpp")
# 2. Inject modern bench.cpp (from optimizations-2)
run_cmd(f"git checkout {original_branch} -- bench.cpp")

# 3. Build release binary
print("Building bench target...")
Expand Down
Loading