You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String#include? 5.961M (± 8.5%) i/s - 29.808M in 5.035615s
1003
+
String#=~ 2.843M (± 8.1%) i/s - 14.241M in 5.040590s
1004
+
Regexp#=== 2.689M (± 7.3%) i/s - 13.467M in 5.032779s
1005
+
String#match 2.371M (± 5.2%) i/s - 11.897M in 5.031192s
1002
1006
1003
1007
Comparison:
1004
-
String#=~: 2442335.1 i/s
1005
-
Regexp#===: 2259277.3 i/s - 1.08x slower
1006
-
String#match: 1839815.4 i/s - 1.33x slower
1008
+
String#include?: 5960785.4 i/s
1009
+
String#=~: 2843384.2 i/s - 2.10x slower
1010
+
Regexp#===: 2689290.6 i/s - 2.22x slower
1011
+
String#match: 2370791.0 i/s - 2.51x slower
1007
1012
```
1008
1013
1009
1014
See [#59](https://github.com/JuanitoFatas/fast-ruby/pull/59) and [#62](https://github.com/JuanitoFatas/fast-ruby/pull/62) for discussions.
0 commit comments