summaryrefslogtreecommitdiff
path: root/benchmark/vm_yield.yml
blob: 230be3d84f3a41f9b7714ee0c79180d684a10848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# while loop cost is not removed due to benchmark_driver.gem's limitation
benchmark:
  vm_yield: |
    def m
      i = 0
      while i<30_000_000
        i += 1
        yield
      end
    end

    m{}
loop_count: 1