Logo
Explore Help
Sign In
mirror/ruby
1
0
Fork 0
You've already forked ruby
mirror of https://github.com/ruby/ruby.git synced 2026-01-26 04:07:58 +00:00
Code Issues Packages Projects Releases Wiki Activity
ruby/benchmark/match_small.rb
Lourens Naudé a47f598d77
Reduce ONIG_NREGION from 10 to 4: power of 2 and testing revealed most pattern matches are less than or equal to 4 results
Closes: https://github.com/ruby/ruby/pull/2135
2019-05-07 21:58:55 +09:00

2 lines
42 B
Ruby
Raw Permalink Blame History

1000000.times { 'haystack'.match(/hay/) }
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 5102ms Template: 51ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API