æ¯è¼å¯¾è±¡ã¯ã ActiveSupport::JSON gemã®JSON http://json.rubyforge.org/ ãã¡ã http://rubyforge.org/snippet/detail.php?type=snippet&id=148 ã§å ¬éããã¦ããJsonParser çµæã¯ä¸ã«è²¼ä»ããã require "rubygems" require "json" require "activesupport" require "json_parser" json = (1..2000).map{|i| { i.to_s => (i+10)*10, :hoge => "ã»ã ãµã" }}.to_json Benchmark.bm do |x| x.report { 10.times{ ActiveSupport::JSON.decode(json) } } x.report
{{#tags}}- {{label}}
{{/tags}}