Permalink
Browse files

fix benchmarks

  • Loading branch information...
1 parent 0ea8a91 commit 26d12ab7077c93cf427b1f21fb8fd7f183ef56dd @minad minad committed Sep 2, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −1 benchmarks/profile-render.rb
  2. +1 −0 benchmarks/run-benchmarks.rb
  3. +2 −2 benchmarks/run-diffbench.rb
@@ -9,4 +9,4 @@
slim = Slim::Template.new { content }
context = Context.new
-10000.times { slim.render(view) }
+10000.times { slim.render(context) }
@@ -6,6 +6,7 @@
require 'context'
require 'benchmark'
+require 'tilt'
require 'erubis'
require 'erb'
require 'haml'
@@ -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

0 comments on commit 26d12ab

Please sign in to comment.