diff options
Diffstat (limited to 'benchmark/bm_vm_thread_alive_check1.rb')
-rw-r--r-- | benchmark/bm_vm_thread_alive_check1.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/bm_vm_thread_alive_check1.rb b/benchmark/bm_vm_thread_alive_check1.rb new file mode 100644 index 0000000000..aebe99875d --- /dev/null +++ b/benchmark/bm_vm_thread_alive_check1.rb @@ -0,0 +1,6 @@ +5000.times{ + t = Thread.new{} + while t.alive? + Thread.pass + end +} |