Merge branch 'master' into sf-optimise-geospatial-query
This commit is contained in:
commit
38e95b4517
4
.github/workflows/osrm-backend.yml
vendored
4
.github/workflows/osrm-backend.yml
vendored
@ -151,7 +151,7 @@ jobs:
|
|||||||
- name: gcc-13-debug-cov
|
- name: gcc-13-debug-cov
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
node: 20
|
node: 20
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
BUILD_TOOLS: ON
|
BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Debug
|
BUILD_TYPE: Debug
|
||||||
CCOMPILER: gcc-13
|
CCOMPILER: gcc-13
|
||||||
@ -248,7 +248,7 @@ jobs:
|
|||||||
- name: gcc-13-release
|
- name: gcc-13-release
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
node: 20
|
node: 20
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
BUILD_TOOLS: ON
|
BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
CCOMPILER: gcc-13
|
CCOMPILER: gcc-13
|
||||||
|
@ -71,9 +71,9 @@ def main():
|
|||||||
benchmark_results = collect_benchmark_results(base_folder, pr_folder)
|
benchmark_results = collect_benchmark_results(base_folder, pr_folder)
|
||||||
|
|
||||||
pr_details = get_pr_details(REPO_OWNER, REPO_NAME, PR_NUMBER)
|
pr_details = get_pr_details(REPO_OWNER, REPO_NAME, PR_NUMBER)
|
||||||
pr_body = pr_details.get('body', '')
|
# in both cases when there is no PR body or PR body is None fallback to empty string
|
||||||
|
pr_body = pr_details.get('body', '') or ''
|
||||||
|
|
||||||
|
|
||||||
markdown_table = create_markdown_table(benchmark_results)
|
markdown_table = create_markdown_table(benchmark_results)
|
||||||
new_benchmark_section = f"<!-- BENCHMARK_RESULTS_START -->\n## Benchmark Results\n{markdown_table}\n<!-- BENCHMARK_RESULTS_END -->"
|
new_benchmark_section = f"<!-- BENCHMARK_RESULTS_START -->\n## Benchmark Results\n{markdown_table}\n<!-- BENCHMARK_RESULTS_END -->"
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ def main():
|
|||||||
flags=re.DOTALL
|
flags=re.DOTALL
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
updated_body = f"{pr_body}\n\n{new_benchmark_section}"
|
updated_body = f"{pr_body}\n\n{new_benchmark_section}" if len(pr_body) > 0 else new_benchmark_section
|
||||||
|
|
||||||
update_pr_description(REPO_OWNER, REPO_NAME, PR_NUMBER, updated_body)
|
update_pr_description(REPO_OWNER, REPO_NAME, PR_NUMBER, updated_body)
|
||||||
print("PR description updated successfully.")
|
print("PR description updated successfully.")
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
|
|
||||||
#include <boost/optional/optional.hpp>
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -215,18 +214,15 @@ try
|
|||||||
FloatCoordinate{FloatLongitude{7.415513992309569}, FloatLatitude{43.73347615145474}});
|
FloatCoordinate{FloatLongitude{7.415513992309569}, FloatLatitude{43.73347615145474}});
|
||||||
params.coordinates.push_back(
|
params.coordinates.push_back(
|
||||||
FloatCoordinate{FloatLongitude{7.415342330932617}, FloatLatitude{43.733251335381205}});
|
FloatCoordinate{FloatLongitude{7.415342330932617}, FloatLatitude{43.733251335381205}});
|
||||||
for (size_t index = 0; index < params.coordinates.size(); ++index)
|
|
||||||
{
|
|
||||||
params.radiuses.emplace_back();
|
|
||||||
}
|
|
||||||
|
|
||||||
auto run_benchmark = [&](std::optional<double> radiusInMeters)
|
auto run_benchmark = [&](std::optional<double> radiusInMeters)
|
||||||
{
|
{
|
||||||
|
params.radiuses = {};
|
||||||
if (radiusInMeters)
|
if (radiusInMeters)
|
||||||
{
|
{
|
||||||
for (auto &radius : params.radiuses)
|
for (size_t index = 0; index < params.coordinates.size(); ++index)
|
||||||
{
|
{
|
||||||
radius = *radiusInMeters;
|
params.radiuses.emplace_back(*radiusInMeters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,11 +254,10 @@ try
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
};
|
};
|
||||||
|
|
||||||
run_benchmark(std::nullopt);
|
for (auto radius : std::vector<std::optional<double>>{std::nullopt, 5.0, 10.0, 15.0, 30.0})
|
||||||
run_benchmark(5.0);
|
{
|
||||||
run_benchmark(10.0);
|
run_benchmark(radius);
|
||||||
run_benchmark(15.0);
|
}
|
||||||
run_benchmark(30.0);
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -270,4 +265,4 @@ catch (const std::exception &e)
|
|||||||
{
|
{
|
||||||
std::cerr << "Error: " << e.what() << std::endl;
|
std::cerr << "Error: " << e.what() << std::endl;
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user