Skip to content

Commit 3f0dd20

Browse files
committed
[experiment] Recursive partitioning with parameter
1 parent a6654ff commit 3f0dd20

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

benchmark/pathfinding/generate_benchmark_scripts.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ versions=("operator")
55
sources=(16384)
66
scale_factors=(1 3 10 30 100 300)
77
threads=(1 2 4 8)
8-
8+
partition_sizes=(65536 131072 262144 524288 1048576)
99
# Loop over versions, sources, and scale factors
1010
for version in "${versions[@]}"; do
1111
for source in "${sources[@]}"; do
1212
for scale in "${scale_factors[@]}"; do
1313
for thread in "${threads[@]}"; do
14+
for partition_size in "${partition_sizes[@]}"; do
15+
# Define the file name
16+
filename="benchmarks/${version}_sf${scale}_src${source}_t${thread}_p${partition_size}.benchmark"
1417

15-
# Define the file name
16-
filename="benchmarks/${version}_sf${scale}_src${source}_t${thread}.benchmark"
17-
18-
# Write content to the file
19-
cat <<EOL > "$filename"
18+
# Write content to the file
19+
cat <<EOL > "$filename"
2020
# name: benchmark/pathfinding/${version}.benchmark
2121
# description: Run ${version} Query For Pathfinding Benchmark
2222
# group: [pathfinding]
@@ -26,9 +26,11 @@ QUERY_NAME=${version}
2626
NUMBER_OF_SOURCES=${source}
2727
SCALE_FACTOR=${scale}
2828
THREADS=${thread}
29+
PARTITION_SIZE=${partition_size}
2930
EOL
3031

3132
echo "Generated: $filename"
33+
done
3234
done
3335
done
3436
done

benchmark/pathfinding/pathfinding.benchmark.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ create or replace table snb_pairs as (
1818
using sample reservoir(${NUMBER_OF_SOURCES} rows) repeatable (300)
1919
);
2020
set threads=${THREADS};
21-
21+
set experimental_path_finding_operator_partition_size=${PARTITION_SIZE};
2222
run benchmark/pathfinding/queries/${QUERY_NAME}.sql

benchmark/pathfinding/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd "$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" >/dev/null 2>&1 && pwd
88

99
./get-small-data.sh
1010

11-
find benchmarks/ f -not -name ".gitignore" -delete
11+
find benchmarks/ -type f -not -name ".gitignore" -delete
1212
./generate_benchmark_scripts.sh
1313
cd ../../../
1414
BUILD_BENCHMARK=1 make GEN=ninja

0 commit comments

Comments
 (0)