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
Hash#values.include? 23.187k (± 4.3%) i/s - 117.720k in 5.086976s
836
+
Hash#value? 38.395k (± 1.0%) i/s - 194.361k in 5.062696s
837
+
838
+
Comparison:
839
+
Hash#value?: 38395.0 i/s
840
+
Hash#values.include?: 23186.8 i/s - 1.66x slower
841
+
```
842
+
808
843
##### `Hash#merge!` vs `Hash#[]=`[code](code/hash/merge-bang-vs-\[\]=.rb)
809
844
810
845
```
@@ -1020,7 +1055,7 @@ Comparison:
1020
1055
##### `String#match` vs `String.match?` vs `String#start_with?`/`String#end_with?`[code (start)](code/string/start-string-checking-match-vs-start_with.rb)[code (end)](code/string/end-string-checking-match-vs-end_with.rb)
1021
1056
1022
1057
The regular expression approaches become slower as the tested string becomes
1023
-
longer. For short strings, `String#match?` performs similarly to
1058
+
longer. For short strings, `String#match?` performs similarly to
0 commit comments