From 97312e42b58484a9a08c24e21c9f6d588ced5d63 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 28 Mar 2015 14:36:23 +0900 Subject: [PATCH] Use ugly mode for benchmarks --- benchmarks/benchmark.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/benchmark.rb b/benchmarks/benchmark.rb index 85c83fe2..a711c8f7 100644 --- a/benchmarks/benchmark.rb +++ b/benchmarks/benchmark.rb @@ -32,6 +32,7 @@ class Benchmarks erubis = Erubis::Eruby.new(@erb_code) fast_erubis = Erubis::FastEruby.new(@erb_code) haml_ugly = Haml::Engine.new(@haml_code, format: :html5, ugly: true) + hamlit_ugly = Hamlit::Engine.new(ugly: true) tenjin = Tenjin::Engine.new.get_template(@rbhtml_path) context = Context.new @@ -45,7 +46,7 @@ class Benchmarks def run_slim_ugly; #{Slim::Engine.new.call @slim_code}; end def run_faml; #{Faml::Engine.new.call @haml_code}; end def run_tenjin; _buf = ''; #{tenjin.script}; end - def run_hamlit; #{Hamlit::Engine.new.call @haml_code}; end + def run_hamlit; #{hamlit_ugly.call @haml_code}; end } bench('hamlit') { context.run_hamlit }