summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 00:41:08 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 00:41:08 +0000
commitcecd39bee2dd6e442230f2784aa8f68f39ce5b6c (patch)
tree97ca3d4a0795596d53f20431e32b310cd504b3e5 /benchmark
parentd095fc2445431b0b7c3071301b19cf2c1acb55d4 (diff)
new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bm_vm1_ivar.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/bm_vm1_ivar.rb b/benchmark/bm_vm1_ivar.rb
new file mode 100644
index 0000000..4de833a
--- /dev/null
+++ b/benchmark/bm_vm1_ivar.rb
@@ -0,0 +1,8 @@
+@a = 1
+
+i = 0
+while i<30000000 # while loop 1
+ i+= 1
+ j = @a
+ k = @a
+end