ruby/benchmark/vm_mutex.yml

9 строки
120 B
YAML

prelude: |
require 'thread'
m = Thread::Mutex.new
benchmark:
vm_mutex: |
m.synchronize{}
loop_count: 6000000