ruby/benchmark/regexp_new.yml

8 строки
116 B
YAML

prelude: |
str = "a" * 1000
re = Regexp.new(str)
benchmark:
string: Regexp.new(str)
regexp: Regexp.new(re)