aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/regexp_new.yml
blob: bc9ab3ca21e96642559899855afd2cb28fd0b089 (plain)
1
2
3
4
5
6
7
prelude: |
  str = "a" * 1000
  re = Regexp.new(str)

benchmark:
  string: Regexp.new(str)
  regexp: Regexp.new(re)