# bench/chart.gnuplot — multi-panel SVG showing relay performance over git tags. # # Invoked by scripts/run_bench_update.sh with: # gnuplot -e "data_dir='...'" -e "output_file='...'" bench/chart.gnuplot # # The data_dir contains per-metric TSV files and a plot_commands.gnuplot # fragment generated by the data-prep step that defines the actual plot # directives (handling variable server columns). set terminal svg enhanced size 1200,900 font "sans,11" set output output_file set style data linespoints set key outside right top set grid ytics set xtics rotate by -30 set datafile separator "\t" # parrhesia-pg: blue solid, parrhesia-memory: green solid # strfry: orange dashed, nostr-rs-relay: red dashed set linetype 1 lc rgb "#2563eb" lw 2 pt 7 ps 1.0 set linetype 2 lc rgb "#16a34a" lw 2 pt 9 ps 1.0 set linetype 3 lc rgb "#ea580c" lw 1.5 pt 5 ps 0.8 dt 2 set linetype 4 lc rgb "#dc2626" lw 1.5 pt 4 ps 0.8 dt 2 set multiplot layout 2,2 title "Parrhesia Relay Benchmark History" font ",14" # Load dynamically generated plot commands (handles variable column counts) load data_dir."/plot_commands.gnuplot" unset multiplot