ruby--ruby/benchmark/vm_mutex.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
120 B
YAML
Raw Permalink Normal View History

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