Skip to content

Commit d285fd9

Browse files
committed
Adding option for partition multiplier
1 parent bf96630 commit d285fd9

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

benchmark/pathfinding/generate_benchmark_scripts.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
#!/bin/bash
22

33
# Define versions, sources, and scale factors
4-
versions=("operator" "udf")
5-
sources=(512 1024 2048 16384 32768 65536 131072)
6-
scale_factors=(30 100 300)
4+
versions=("operator")
5+
sources=(16384 32768 65536)
6+
scale_factors=(1 3 10)
77
threads=(1 2 4 8)
8+
partition_multipliers=(1 2 4 8 16)
89

910
# Loop over versions, sources, and scale factors
1011
for version in "${versions[@]}"; do
1112
for source in "${sources[@]}"; do
1213
for scale in "${scale_factors[@]}"; do
1314
for thread in "${threads[@]}"; do
1415

15-
# Define the file name
16-
filename="benchmarks/${version}_sf${scale}_src${source}_t${thread}.benchmark"
16+
for partition_multiplier in "${partition_multipliers[@]}"; do
17+
# Define the file name
18+
filename="benchmarks/${version}_sf${scale}_src${source}_t${thread}_p${partition_multiplier}.benchmark"
1719

18-
# Write content to the file
19-
cat <<EOL > "$filename"
20+
# Write content to the file
21+
cat <<EOL > "$filename"
2022
# name: benchmark/pathfinding/${version}.benchmark
2123
# description: Run ${version} Query For Pathfinding Benchmark
2224
# group: [pathfinding]
@@ -26,9 +28,11 @@ QUERY_NAME=${version}
2628
NUMBER_OF_SOURCES=${source}
2729
SCALE_FACTOR=${scale}
2830
THREADS=${thread}
31+
PARTITION_MULTIPLIER=${partition_multiplier}
2932
EOL
3033

31-
echo "Generated: $filename"
34+
echo "Generated: $filename"
35+
done
3236
done
3337
done
3438
done

benchmark/pathfinding/pathfinding.benchmark.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ create or replace table snb_pairs as (
1818
using sample reservoir(${NUMBER_OF_SOURCES} rows) repeatable (300)
1919
);
2020
set threads=${THREADS};
21+
set experimental_path_finding_operator_partition_multiplier=${PARTITION_MULTIPLIER};
2122

2223
run benchmark/pathfinding/queries/${QUERY_NAME}.sql

benchmark/pathfinding/run.sh

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

88

99
./get-small-data.sh
10+
11+
rm benchmarks/*
1012
./generate_benchmark_scripts.sh
1113
cd ../../../
1214
BUILD_BENCHMARK=1 make GEN=ninja

0 commit comments

Comments
 (0)