1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Use ugly mode for benchmarks

This commit is contained in:
Takashi Kokubun 2015-03-28 14:36:23 +09:00
parent 6f6b9614ca
commit 97312e42b5

View file

@ -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 }