Skip to content

Commit

Permalink
fix: format plots and fix numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis committed Nov 7, 2024
1 parent 30eaf39 commit 1a2bd31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ jobs:
set output file_name
small = "#D81B60"; medium = "#1E88E5"; big = "#FFC107";
set yrange [0:20]
set style data histogram
set style histogram cluster gap 1
set style fill solid
Expand All @@ -301,6 +300,7 @@ jobs:
Wundergraph ${{ fromJson(needs.read.outputs.result).rps.small_wundergraph_no_opt }} ${{ fromJson(needs.read.outputs.result).rps.medium_wundergraph_no_opt }} ${{ fromJson(needs.read.outputs.result).rps.big_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).rps.small_apollo_router }} ${{ fromJson(needs.read.outputs.result).rps.medium_apollo_router }} ${{ fromJson(needs.read.outputs.result).rps.big_apollo_router }}
EOF
tr -d ',' < data.dat > data.dat
- name: Create RPS basic plot
run: gnuplot -e "file_name='files/rps_default.png'; title_text='RPS Default'" plot_script.gp
- name: Save RPS cached plot data
Expand All @@ -311,6 +311,7 @@ jobs:
Grafbase ${{ fromJson(needs.read.outputs.result).rps.small_grafbase_cache }} ${{ fromJson(needs.read.outputs.result).rps.medium_grafbase_cache }} ${{ fromJson(needs.read.outputs.result).rps.big__grafbase_cache }}
Wundergraph ${{ fromJson(needs.read.outputs.result).rps.small_wundergraph_default }} ${{ fromJson(needs.read.outputs.result).rps.medium_wundergraph_default }} ${{ fromJson(needs.read.outputs.result).rps.big__wundergraph_default }}
EOF
tr -d ',' < data.dat > data.dat
- 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
Expand All @@ -320,8 +321,8 @@ jobs:
set output file_name
small = "#D81B60"; medium = "#1E88E5"; big = "#FFC107";
set yrange [0:1]
set logscale y
set key left top
set style data histogram
set style histogram cluster gap 1
set style fill solid
Expand All @@ -344,6 +345,7 @@ jobs:
Wundergraph ${{ fromJson(needs.read.outputs.result).p95.small_wundergraph_no_opt }} ${{ fromJson(needs.read.outputs.result).p95.medium_wundergraph_no_opt }} ${{ fromJson(needs.read.outputs.result).p95.big_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).p95.small_apollo_router }} ${{ fromJson(needs.read.outputs.result).p95.medium_apollo_router }} ${{ fromJson(needs.read.outputs.result).p95.big_apollo_router }}
EOF
tr -d ',' < data.dat > data.dat
- name: Create P95 Latency basic plot
run: gnuplot -e "file_name='files/p95_default.png'; title_text='Latency 95% Default'" plot_script.gp
- name: Save P95 Latency cached plot data
Expand All @@ -354,6 +356,7 @@ jobs:
Grafbase ${{ fromJson(needs.read.outputs.result).p95.small_grafbase_cache }} ${{ fromJson(needs.read.outputs.result).p95.medium_grafbase_cache }} ${{ fromJson(needs.read.outputs.result).p95.big__grafbase_cache }}
Wundergraph ${{ fromJson(needs.read.outputs.result).p95.small_wundergraph_default }} ${{ fromJson(needs.read.outputs.result).p95.medium_wundergraph_default }} ${{ fromJson(needs.read.outputs.result).p95.big__wundergraph_default }}
EOF
tr -d ',' < data.dat > data.dat
- name: Create P95 Latency cached plot
run: gnuplot -e "file_name='files/p95_cached.png'; title_text='Latency 95% Cached'" plot_script.gp
- name: Cleanup files
Expand Down

0 comments on commit 1a2bd31

Please sign in to comment.