chore: adds perf graphs

This commit is contained in:
Kevin K 2015-11-12 10:16:22 -05:00
parent 8202c30a96
commit e7715f1df1
4 changed files with 34 additions and 1 deletions

View file

@ -3,7 +3,7 @@
name = "clap"
version = "1.4.7"
authors = ["Kevin K. <kbknapp@gmail.com>"]
exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "clap.png"]
exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "*.png", "clap-perf/*"]
description = "A simple to use, efficient, and full featured Command Line Argument Parser"
repository = "https://github.com/kbknapp/clap-rs.git"
documentation = "http://kbknapp.github.io/clap-rs"

7
clap-perf/clap_perf.dat Normal file
View file

@ -0,0 +1,7 @@
#Version Date Builder Err Usage Err Parse1 Err Parse2 Err
1.0 2015-07-07 12408 840 16830 229 21235 725 27387 910
1.1 2015-07-16 11885 191 16670 595 20919 252 26868 457
1.2 2015-08-14 12563 587 17190 311 22421 233 28232 624
1.3 2015-09-01 10534 131 14648 874 18213 1070 24101 361
1.4 2015-09-09 10223 852 13203 749 18924 1216 23492 944
1.5 2015-11-12 5422 416 7974 680 9723 792 13389 1151

BIN
clap-perf/clap_perf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

26
clap-perf/plot_perf.gp Normal file
View file

@ -0,0 +1,26 @@
#!/usr/bin/gnuplot
reset
set terminal png
set output "clap_perf.png"
set xlabel "Version"
set xrange [0.9:1.6]
set ylabel "Time (ns)"
set yrange [0:35000]
set title "clap-rs Performance by Version"
set key inside left bottom
set grid
set style line 1 lc rgb '#0060ad' lt 1 lw 1 pt 7 ps .5 # --- blue
set style line 2 lc rgb '#dd181f' lt 1 lw 1 pt 5 ps .5 # --- red
set style line 3 lc rgb '#18dd00' lt 1 lw 1 pt 7 ps .5 # --- green
set style line 4 lc rgb '#000000' lt 1 lw 1 pt 5 ps .5 # --- black
plot "clap_perf.dat" u 1:3:4 notitle w yerrorbars ls 1, \
"" u 1:3 t "Create Parser Using Builder" w lines ls 1, \
"" u 1:5:6 notitle w yerrorbars ls 2, \
"" u 1:5 t "Create Parser Usage String" w lines ls 2, \
"" u 1:7:8 notitle "Parse Complex Args" w yerrorbars ls 3, \
"" u 1:7 t "Parse Complex Args" w lines ls 3, \
"" u 1:9:10 notitle w yerrorbars ls 4, \
"" u 1:9 t "Parse Very Complex Args" w lines ls 4