summaryrefslogtreecommitdiff
path: root/benchmark/string_scan_re.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/string_scan_re.yml')
-rw-r--r--benchmark/string_scan_re.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/string_scan_re.yml b/benchmark/string_scan_re.yml
new file mode 100644
index 0000000000..a1d249ff52
--- /dev/null
+++ b/benchmark/string_scan_re.yml
@@ -0,0 +1,5 @@
+benchmark:
+ string_scan_re: |
+ str = Array.new(1_000, 'abc').join(',')
+ 1_000.times { str.scan(/abc/) }
+loop_count: 1