Skip to content

Commit

Permalink
fix: improve plots labels format
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis committed Nov 6, 2024
1 parent 003d067 commit 4846ea7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ jobs:
set style fill solid
set boxwidth 0.9
set xtics format ""
set xtics rotate by 45 right
set grid ytics
set title title_text
Expand Down Expand Up @@ -312,6 +313,28 @@ jobs:
EOF
- name: Create RPS cached plot
run: gnuplot -e "file_name='files/rps_cached.png'; title_text='RPS Cached'" plot_script.gp
- name: Write p95 plot script
run: |
cat << 'EOF' > plot_script.gp
set terminal png size 800,500 enhanced font "Arial,20"
set output file_name
small = "#D81B60"; medium = "#1E88E5"; big = "#FFC107";
set yrange [0:1]
set logscale y
set style data histogram
set style histogram cluster gap 1
set style fill solid
set boxwidth 0.9
set xtics format ""
set xtics rotate by 45 right
set grid ytics
set title title_text
plot 'data.dat' using 2:xtic(1) title "Small" linecolor rgb small, \
'data.dat' using 3 title "Medium" linecolor rgb medium, \
'data.dat' using 4 title "Big" linecolor rgb big
EOF
- name: Save P95 Latency basic plot data
run: |
cat << 'EOF' > data.dat
Expand Down

0 comments on commit 4846ea7

Please sign in to comment.