ruby/benchmark/vm2_mutex.yml

9 строки
121 B
YAML

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