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

Drop pretty haml and slim benchmark

This commit is contained in:
Takashi Kokubun 2015-03-09 15:26:32 +09:00
parent 3a019ce27f
commit 67e0a46b04

View file

@ -31,14 +31,12 @@ class Benchmarks
context = Context.new
haml_pretty.def_method(context, :run_haml_pretty)
haml_ugly.def_method(context, :run_haml_ugly)
context.instance_eval %{
def run_erb; #{erb.src}; end
def run_erubis; #{erubis.src}; end
def run_temple_erb; #{Temple::ERB::Engine.new.call @erb_code}; end
def run_fast_erubis; #{fast_erubis.src}; end
def run_slim_pretty; #{Slim::Engine.new(pretty: true).call @slim_code}; end
def run_slim_ugly; #{Slim::Engine.new.call @slim_code}; end
}
@ -46,10 +44,8 @@ class Benchmarks
bench('erubis') { context.run_erubis }
bench('fast erubis') { context.run_fast_erubis }
bench('temple erb') { context.run_temple_erb }
bench('slim pretty') { context.run_slim_pretty }
bench('slim ugly') { context.run_slim_ugly }
bench('haml pretty') { context.run_haml_pretty }
bench('haml ugly') { context.run_haml_ugly }
bench('slim') { context.run_slim_ugly }
bench('haml') { context.run_haml_ugly }
end
def run