diff --git a/benchmarks/benchmark.rb b/benchmarks/benchmark.rb index 49c7a789..8e3b0922 100644 --- a/benchmarks/benchmark.rb +++ b/benchmarks/benchmark.rb @@ -48,15 +48,18 @@ class Benchmarks def run_hamlit; #{Hamlit::Engine.new.call @haml_code}; end } - bench('erubis') { context.run_erubis } - bench('slim') { context.run_slim_ugly } - bench('fast_haml') { context.run_fast_haml } - bench('tenjin') { context.run_tenjin } - bench('fast erubis') { context.run_fast_erubis } - bench('temple erb') { context.run_temple_erb } - bench('erb') { context.run_erb } - bench('hamlit') { context.run_hamlit } - bench('haml') { context.run_haml_ugly } + bench('erubis') { context.run_erubis } + bench('slim') { context.run_slim_ugly } + bench('fast_haml') { context.run_fast_haml } + bench('hamlit') { context.run_hamlit } + + if ENV['ALL'] + bench('tenjin') { context.run_tenjin } + bench('fast erubis') { context.run_fast_erubis } + bench('temple erb') { context.run_temple_erb } + bench('erb') { context.run_erb } + bench('haml') { context.run_haml_ugly } + end end def run diff --git a/wercker.yml b/wercker.yml index 6c8fa512..c0abd049 100644 --- a/wercker.yml +++ b/wercker.yml @@ -32,4 +32,4 @@ build: - script: name: run benchmarks - code: bundle exec rake bench + code: ALL=true bundle exec rake bench