defunkt/mustache — Issue #127: Benchmarks broken?
Author: tcrayford
Created: 2012-02-18 15:41:51+00:00
State: open

Ran this from inside the benchmarks folder, on 1.8.7 and 1.9.3, using latest haml/mustache from rubygems.

ruby -Irubygems speed.rb
Rehearsal ----------------------------------------------------
ERB w/ caching 0.100000 0.000000 0.100000 ( 0.107874)
ERB w/o caching (erb):1:in `

': undefined local variable or method `header' for main:Object (NameError)
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `eval'
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `result'
from speed.rb:23:in `block in

'
from /Users/tcrayford/Downloads/src/mustache/benchmarks/helper.rb:15:in `call'
from /Users/tcrayford/Downloads/src/mustache/benchmarks/helper.rb:15:in `block (5 levels) in '
from /Users/tcrayford/Downloads/src/mustache/benchmarks/helper.rb:14:in `times'
from /Users/tcrayford/Downloads/src/mustache/benchmarks/helper.rb:14:in `block (4 levels) in '
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:257:in `block in bmbm'
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:255:in `each'
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:255:in `inject'
from /Users/tcrayford/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:255:in `bmbm'
from /Users/tcrayford/Downloads/src/mustache/benchmarks/helper.rb:11:in `block in '