From 3c9187a2ad892d0c7c4b905104bb71c3c34a999e Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 12 Jun 2011 04:38:50 +0000 Subject: * benchmark/bm_vm3_thread_mutex.rb: remove it. * benchmark/bm_vm3_thread_mutex[1-3].rb: added 3 benchmarks. 1: one thread with one mutex (no contention). 2: two threads with one mutex (contention). 3: 1000 threads with one mutex (huge number of contention) Abobe removed benchmark was type 3. Therefore, this commit adds type 1 and 2 benchmark. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/bm_vm3_thread_mutex.rb | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 benchmark/bm_vm3_thread_mutex.rb (limited to 'benchmark/bm_vm3_thread_mutex.rb') diff --git a/benchmark/bm_vm3_thread_mutex.rb b/benchmark/bm_vm3_thread_mutex.rb deleted file mode 100644 index 649f1fddac..0000000000 --- a/benchmark/bm_vm3_thread_mutex.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'thread' -m = Mutex.new -r = 0 -max = 1000 -(1..max).map{ - Thread.new{ - i=0 - while i