HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-2.7.4/benchmark/vm1_gc_short_with_complex_long.yml
prelude: |
  def nested_hash h, n
    if n == 0
      ''
    else
      10.times{
        h[Object.new] = nested_hash(h, n-1)
      }
    end
  end

  long_lived = Hash.new
  nested_hash long_lived, 6

  GC.start
  GC.start
benchmark:
  vm1_gc_short_with_complex_long: |
    a = '' # short-lived String
    b = ''
    c = ''
    d = ''
    e = ''
    f = ''
loop_count: 30000000