Sha256: a82cc8983a45fb38a75f76e02cc989baed99de596de5eeabdd1dd5b59362cb65

Contents?: true

Size: 599 Bytes

Versions: 24

Compression:

Stored size: 599 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

$: << '.'
$: << File.join(File.dirname(__FILE__), "../lib")
$: << File.join(File.dirname(__FILE__), "../ext")

require 'oj'

Oj.default_options = { mode: :rails, cache_keys: false, cache_str: -1 }

def mem
  `ps -o rss= -p #{$$}`.to_i
end

('a'..'z').each { |a|
  ('a'..'z').each { |b|
    ('a'..'z').each { |c|
      ('a'..'z').each { |d|
	('a'..'z').each { |e|
	  ('a'..'z').each { |f|
	    key = "#{a}#{b}#{c}#{d}#{e}#{f}"
	    x = Oj.load(%|{ "#{key}": 101}|)
	    #Oj.dump(x)
	  }
	}
      }
    }
    puts "#{a}#{b} #{mem}"
  }
}

Oj::Parser.new(:usual)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
oj-3.14.2 test/mem.rb
oj-3.14.1 test/mem.rb
oj-3.14.0 test/mem.rb
oj-3.13.23 test/mem.rb
oj-3.13.22 test/mem.rb
oj-3.13.21 test/mem.rb
oj-3.13.20 test/mem.rb
oj-3.13.19 test/mem.rb
oj-3.13.18 test/mem.rb
oj-3.13.17 test/mem.rb
oj-3.13.16 test/mem.rb
oj-3.13.15 test/mem.rb
oj-3.13.14 test/mem.rb
oj-3.13.13 test/mem.rb
oj-3.13.12 test/mem.rb
oj-3.13.11 test/mem.rb
oj-3.13.10 test/mem.rb
oj-3.13.9 test/mem.rb
oj-3.13.8 test/mem.rb
oj-3.13.7 test/mem.rb