benchmark/encode.rb in yajl-ruby-0.7.4 vs benchmark/encode.rb in yajl-ruby-0.7.5
- old
+ new
@@ -7,11 +7,15 @@
require 'json'
rescue LoadError
end
# Can't use ActiveSuport::JSON.encode with the JSON gem loaded
# begin
-# require 'active_support'
+# require 'active_support/json'
# rescue LoadError
+# begin
+# require 'active_support'
+# rescue LoadError
+# end
# end
filename = ARGV[0] || 'benchmark/subjects/ohai.json'
json = File.new(filename, 'r')
hash = Yajl::Parser.new.parse(json)