blob: c5f264ee3631d75f0a366dda853f684584e819b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
prelude: |
# Plenty Thtread.pass
# A performance may depend on GVL implementation.
benchmark:
vm_thread_pass: |
tmax = (ARGV.shift || 2).to_i
lmax = 200_000 / tmax
(1..tmax).map{
Thread.new{
lmax.times{
Thread.pass
}
}
}.each{|t| t.join}
loop_count: 1
|