diff options
Diffstat (limited to 'benchmark/bm_vm2_regexp.rb')
-rw-r--r-- | benchmark/bm_vm2_regexp.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/bm_vm2_regexp.rb b/benchmark/bm_vm2_regexp.rb new file mode 100644 index 0000000000..515cd0e531 --- /dev/null +++ b/benchmark/bm_vm2_regexp.rb @@ -0,0 +1,6 @@ +i=0
+str = 'xxxhogexxx'
+while i<6000000 # benchmark loop 2
+ /hoge/ =~ str
+ i+=1
+end
|