summaryrefslogtreecommitdiff
path: root/benchmark/vm_thread_pass.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm_thread_pass.yml')
-rw-r--r--benchmark/vm_thread_pass.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmark/vm_thread_pass.yml b/benchmark/vm_thread_pass.yml
new file mode 100644
index 0000000..c5f264e
--- /dev/null
+++ b/benchmark/vm_thread_pass.yml
@@ -0,0 +1,17 @@
+prelude: |
+ # Plenty Thtread.pass
+ # A performance may depend on GVL implementation.
+benchmark:
+ vm_thread_pass: |
+
+ tmax = (ARGV.shift || 2).to_i
+ lmax = 200_000 / tmax
+
+ (1..tmax).map{
+ Thread.new{
+ lmax.times{
+ Thread.pass
+ }
+ }
+ }.each{|t| t.join}
+loop_count: 1