[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / regexp_new.yml
blobbc9ab3ca21e96642559899855afd2cb28fd0b089
1 prelude: |
2   str = "a" * 1000
3   re = Regexp.new(str)
5 benchmark:
6   string: Regexp.new(str)
7   regexp: Regexp.new(re)