From c55cd99068aee29bc44dddc5e3e39a8f472c1822 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 10 Dec 2007 00:57:10 +0000 Subject: * benchmark/bm_vm1_neq.rb, bm_vm1_not.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/bm_vm1_neq.rb | 8 ++++++++ benchmark/bm_vm1_not.rb | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 benchmark/bm_vm1_neq.rb create mode 100644 benchmark/bm_vm1_not.rb (limited to 'benchmark') diff --git a/benchmark/bm_vm1_neq.rb b/benchmark/bm_vm1_neq.rb new file mode 100644 index 000000000..9af53a245 --- /dev/null +++ b/benchmark/bm_vm1_neq.rb @@ -0,0 +1,8 @@ +i = 0 +obj1 = Object.new +obj2 = Object.new + +while i<30000000 # while loop 1 + i+= 1 + obj1 != obj2 +end diff --git a/benchmark/bm_vm1_not.rb b/benchmark/bm_vm1_not.rb new file mode 100644 index 000000000..bd75a0863 --- /dev/null +++ b/benchmark/bm_vm1_not.rb @@ -0,0 +1,7 @@ +i = 0 +obj = Object.new + +while i<30000000 # while loop 1 + i+= 1 + !obj +end -- cgit