benchs: add pep8analisis bench program
[nit.git] / benchmarks / bench_engines.sh
index ef0a709..5ec8a00 100755 (executable)
@@ -25,6 +25,8 @@ source ./bench_plot.sh
 # Can be overrided with 'the option -n'
 count=2
 
+pep8analysis=../../pep8analysis
+
 ### HELPER FUNCTIONS ##
 
 function die()
@@ -128,6 +130,8 @@ function run_compiler()
                bench_command "shoot" "shoot_logic 30" "./shoot.$title.bin" 30
                run_command "$@" ../tests/bench_bintree_gen.nit -o "bintrees.$title.bin"
                bench_command "bintrees" "bench_bintree_gen 18" "./bintrees.$title.bin" 18
+               run_command "$@" "$pep8analysis/src/pep8analysis.nit" -I "$pep8analysis/lib" -o "pep8a.$title.bin"
+               bench_command "pep8analisis" "bench_bintree_gen 18" "./pep8a.$title.bin" "$pep8analysis/tests/privat/"*.pep
        fi
 }