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