summaryrefslogtreecommitdiff
path: root/benchmark/vm2_module_const_set.yml
blob: a69d49996359ddb788aaf5718a1f46fdc603975a (plain)
1
2
3
4
5
6
7
8
9
10
11
benchmark:
  vm2_module_const_set: |
    i = 0
    module M
    end
    $VERBOSE = nil
    while i<6_000_000 # benchmark loop 2
      i += 1
      M.const_set(:X, Module.new)
    end
loop_count: 1