summaryrefslogtreecommitdiff
path: root/benchmark/vm_thread_alive_check1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_thread_alive_check1.yml')
-rw-r--r--benchmark/vm_thread_alive_check1.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/benchmark/vm_thread_alive_check1.yml b/benchmark/vm_thread_alive_check1.yml
new file mode 100644
index 0000000..4ab9740
--- /dev/null
+++ b/benchmark/vm_thread_alive_check1.yml
@@ -0,0 +1,9 @@
+benchmark:
+ vm_thread_alive_check1: |
+ 5_000.times{
+ t = Thread.new{}
+ while t.alive?
+ Thread.pass
+ end
+ }
+loop_count: 1