Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save zimmerle/dc830bcaa2f325e12b56 to your computer and use it in GitHub Desktop.

Select an option

Save zimmerle/dc830bcaa2f325e12b56 to your computer and use it in GitHub Desktop.
set title "ModSecurity Performance: Throughput"
set grid lt 1 lw 1
set surface
set parametric
set xtics
set ytics
set logscale x 2
set logscale y 2
set xlabel "Content size (kB) [log]"
set ylabel "Concurrent requests [log]"
set zlabel "Throughput (MB/s)"
set style data lines
set dgrid3d 80,80,3
set term pdf font 'Verdana,4'
set output "output-all.pdf"
set key at screen 0.95, .96
splot "results3.txt" u 1:8:3 title "With ModSecurity (No rules loaded)", "results2.txt" u 1:8:3 title "With ModSecurity (Using OWASP basic rules)", "results1.txt" u 1:8:3 title "Without ModSecurity"
set contour base
set style increment user
set style line 1 lc rgb 'blue'
splot "results1.txt" u 1:8:3 title "Without ModSecurity"
set style line 1 lc rgb 'green'
splot "results2.txt" u 1:8:3 title "With ModSecurity (Using OWASP basic rules)"
set style line 1 lc rgb 'red'
splot "results3.txt" u 1:8:3 title "With ModSecurity (No rules loaded)"
set title "ModSecurity Performance: Latency"
unset contour
set style increment default
set zlabel "Latency (ms)"
splot "results3.txt" u 1:8:2 title "With ModSecurity (No rules loaded)", "results2.txt" u 1:8:2 title "With ModSecurity (Using OWASP basic rules)", "results1.txt" u 1:8:2 title "Without ModSecurity"
set contour base
set style increment user
set style line 1 lc rgb 'blue'
splot "results1.txt" u 1:8:2 title "Without ModSecurity"
set style line 1 lc rgb 'green'
splot "results2.txt" u 1:8:2 title "With ModSecurity (Using OWASP basic rules)"
set style line 1 lc rgb 'red'
splot "results3.txt" u 1:8:2 title "With ModSecurity (No rules loaded)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment