diff options
Diffstat (limited to 'benchmark/bm_string_scan_str.rb')
-rw-r--r-- | benchmark/bm_string_scan_str.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_string_scan_str.rb b/benchmark/bm_string_scan_str.rb new file mode 100644 index 0000000000..42440bd948 --- /dev/null +++ b/benchmark/bm_string_scan_str.rb @@ -0,0 +1,2 @@ +str = Array.new(1_000, 'abc').join(',') +1_000.times { str.scan('abc') } |