improved benchmark suite

This commit is contained in:
Tobias Lütke
2011-01-28 21:16:22 -05:00
parent f7ff9c81d3
commit 9c49b8bbb2
3 changed files with 57 additions and 38 deletions
+10
View File
@@ -0,0 +1,10 @@
require 'rubygems'
require 'benchmark'
require File.dirname(__FILE__) + '/theme_runner'
profiler = ThemeRunner.new
Benchmark.bmbm do |x|
x.report("parse & run:") { 10.times { profiler.run(false) } }
end