Skip to content

Commit

Permalink
Improve naming of benchmark and script function
Browse files Browse the repository at this point in the history
Signed-off-by: Renan Magagnin <[email protected]>
  • Loading branch information
renanmagagnin committed Dec 10, 2024
1 parent e7924de commit e77e680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name=fs_bench
bs=1B

[sequential_write_small_file]
[time_to_write_one_byte_file]
size=1B
rw=write
ioengine=sync
Expand Down
7 changes: 3 additions & 4 deletions mountpoint-s3/scripts/fs_latency_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ do
dir_size=$(awk "BEGIN {print $dir_size*10}")
done


run_start_time_to_first_byte_benchmarks() {
run_file_benchmarks() {
category=$1
jobs_dir=mountpoint-s3/scripts/fio/${category}_latency
for job_file in "${jobs_dir}"/*.fio; do
Expand Down Expand Up @@ -188,8 +187,8 @@ for job_file in "${jobs_dir}"/*.fio; do
done
}

run_start_time_to_first_byte_benchmarks read
run_start_time_to_first_byte_benchmarks write
run_file_benchmarks read
run_file_benchmarks write

# combine all bench results into one json file
jq -n '[inputs]' ${results_dir}/*.json | tee ${results_dir}/output.json

0 comments on commit e77e680

Please sign in to comment.