Skip to content

Commit

Permalink
re-enabling activesupport benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Apr 22, 2009
1 parent ea750e3 commit b8c9269
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions benchmark/benchmark.rb
@@ -1,6 +1,6 @@
require 'rubygems'
require 'benchmark'
require 'yajl.bundle'
require '../yajl.bundle'
require 'json'
require 'activesupport'

Expand Down Expand Up @@ -28,12 +28,12 @@
JSON.parse(json.read, :max_nesting => false)
}
}
# x.report {
# puts "ActiveSupport::JSON.decode"
# times.times {
# json.rewind
# ActiveSupport::JSON.decode(json.read)
# }
# }
x.report {
puts "ActiveSupport::JSON.decode"
times.times {
json.rewind
ActiveSupport::JSON.decode(json.read)
}
}
}
json.close

0 comments on commit b8c9269

Please sign in to comment.