summaryrefslogtreecommitdiff
path: root/benchmark/vm_thread_close.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_thread_close.yml')
-rw-r--r--benchmark/vm_thread_close.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/benchmark/vm_thread_close.yml b/benchmark/vm_thread_close.yml
new file mode 100644
index 0000000000..4867f1ca2a
--- /dev/null
+++ b/benchmark/vm_thread_close.yml
@@ -0,0 +1,9 @@
+benchmark:
+ vm_thread_close: |
+ 1000.times { Thread.new { sleep } }
+ i = 0
+ while i<100_000 # benchmark loop 3
+ i += 1
+ IO.pipe.each(&:close)
+ end
+loop_count: 1