summaryrefslogtreecommitdiff
path: root/benchmark/vm_thread_pass_flood.yml
blob: 953288ebe4012beb06ac67db42b4c495bb31daf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
prelude: |
  # n.b. this is a good test for GVL when pinned to a single CPU
benchmark:
  vm_thread_pass_flood: |

    1000.times{
      Thread.new{loop{Thread.pass}}
    }

    i = 0
    while i<10000
      i += 1
    end
loop_count: 1