Skip to content

Commit

Permalink
Change directories for performance scripts results (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcio authored Dec 9, 2024
1 parent 20a6d14 commit 26d6d45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions scripts/performance/run-standard-performance-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ trap on_exit_bench EXIT
echo "Building project..."
cargo build --release

# Remove old performance results
echo "Cleaning old performance results..."
rm -rf performance_results || true
# Create a directory for the performance results
(mkdir performance_results || true) &> /dev/null

# Construct standard performance suites, each should process 8 GB of data
STANDARD_SEND=$(construct_bench_command "$IGGY_BENCH_CMD" "send" 8 1000 1000 1000 tcp) # 8 producers, 8 streams, 1000 byte messages, 1000 messages per batch, 1000 message batches, tcp
Expand Down
4 changes: 3 additions & 1 deletion scripts/performance/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function construct_bench_command() {
local streams=${count}

local superdir
superdir="performance_results_$(get_git_iggy_server_tag_or_sha1 .)" || { echo "Failed to get git commit or tag."; exit 1; }
superdir="performance_results/$(get_git_iggy_server_tag_or_sha1 .)" || { echo "Failed to get git commit or tag."; exit 1; }
rm -rf "$superdir" || true
mkdir -p "$superdir" || { echo "Failed to create directory '$superdir'."; exit 1; }
local output_directory="${superdir}/${type}_${count}${type:0:1}_${message_size}_${messages_per_batch}_${message_batches}_${protocol}"

echo "$bench_command \
Expand Down

0 comments on commit 26d6d45

Please sign in to comment.