summaryrefslogtreecommitdiff
path: root/benchmark/vm2_regexp.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/vm2_regexp.yml')
-rw-r--r--benchmark/vm2_regexp.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/benchmark/vm2_regexp.yml b/benchmark/vm2_regexp.yml
new file mode 100644
index 0000000..da7416b
--- /dev/null
+++ b/benchmark/vm2_regexp.yml
@@ -0,0 +1,9 @@
+benchmark:
+ vm2_regexp: |
+ i = 0
+ str = 'xxxhogexxx'
+ while i<6_000_000 # benchmark loop 2
+ /hoge/ =~ str
+ i += 1
+ end
+loop_count: 1