1 2 3 4 5 6 7 8
prelude: | require 'thread' m = Thread::Mutex.new benchmark: vm_mutex: | m.synchronize{} loop_count: 6000000