summaryrefslogtreecommitdiff
path: root/trunk/benchmark/bm_vm2_regexp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/benchmark/bm_vm2_regexp.rb')
-rw-r--r--trunk/benchmark/bm_vm2_regexp.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/trunk/benchmark/bm_vm2_regexp.rb b/trunk/benchmark/bm_vm2_regexp.rb
new file mode 100644
index 0000000000..44f6ed402e
--- /dev/null
+++ b/trunk/benchmark/bm_vm2_regexp.rb
@@ -0,0 +1,6 @@
+i=0
+str = 'xxxhogexxx'
+while i<6000000 # benchmark loop 2
+ /hoge/ =~ str
+ i+=1
+end