summaryrefslogtreecommitdiff
path: root/benchmark/vm2_mutex.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_mutex.yml')
-rw-r--r--benchmark/vm2_mutex.yml17
1 files changed, 7 insertions, 10 deletions
diff --git a/benchmark/vm2_mutex.yml b/benchmark/vm2_mutex.yml
index 8aefe23..caa0e9a 100644
--- a/benchmark/vm2_mutex.yml
+++ b/benchmark/vm2_mutex.yml
@@ -1,12 +1,9 @@
-benchmark:
- vm2_mutex: |
- require 'thread'
+prelude: |
+ require 'thread'
- m = Thread::Mutex.new
+ m = Thread::Mutex.new
+benchmark:
+ vm2_mutex: 'm.synchronize{}
- i = 0
- while i<6_000_000 # benchmark loop 2
- i += 1
- m.synchronize{}
- end
-loop_count: 1
+'
+loop_count: 6000000