Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix benchmarks

  • Loading branch information...
commit 26d12ab7077c93cf427b1f21fb8fd7f183ef56dd 1 parent 0ea8a91
@minad minad authored
View
2  benchmarks/profile-render.rb
@@ -9,4 +9,4 @@
slim = Slim::Template.new { content }
context = Context.new
-10000.times { slim.render(view) }
+10000.times { slim.render(context) }
View
1  benchmarks/run-benchmarks.rb
@@ -6,6 +6,7 @@
require 'context'
require 'benchmark'
+require 'tilt'
require 'erubis'
require 'erb'
require 'haml'
View
4 benchmarks/run-diffbench.rb
@@ -13,9 +13,9 @@
DiffBench.bm do
report("Parse") do
- 1000.times { engine.call(content) }
+ 2000.times { engine.call(content) }
end
report("Render") do
- 10000.times { template.render(context) }
+ 100000.times { template.render(context) }
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.