Logo
Explore Help
Sign In
mirrors/ruby
Watch 0
Star 0 Fork 0
mirror of https://github.com/ruby/ruby.git synced 2026-10-29 00:46:26 +08:00
Code Activity
Files
ruby_2_7
ruby/benchmark/match_small.rb
T
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/) }
View Git Blame Copy Permalink
Powered by Gitea Version: 28.2.0 Page: 24ms Template: 2ms
Auto
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