ruby/benchmark/regexp_new.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 строки
116 B
YAML
Исходник Обычный вид История

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