summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm2_mutex.rb
blob: 9ec1a0f136847d02722d7a9029e394373fca3f4e (plain)
1
2
3
4
5
6
7
8
9
require 'thread'

m = Mutex.new

i=0
while i<6000000 # benchmark loop 2
  i+=1
  m.synchronize{}
end