A handy list, I'll have to read through it more completely some time. There are some surprising speed differences. For instance, array.drop is hella-faster than array.clear, and array.shift(n) is faster yet (what?).<p>Nitpick on their array tests, however:<p><pre><code> measure "Array#delete_if" do
a = ARRAY.dup
a.delete_if {|o| o}
end
</code></pre>
Ah, <i>no</i>. If o == false, that won't delete it. Also, you're calling object == true; how about a.delete_if {true}?<p><pre><code> "Array#delete_if{true}" is up to 30% faster over 10000 repetitions
------------------------------------------------------------------
Array#delete_if{true} 1.42472314834595 secs Fastest
Array#delete_if{|o| o} 2.03995013237 secs 30% Slower
</code></pre>
Also:<p>><i>gsubbing with string literals vs regex. For some reason regexp is faster. I suspect it converts string literals to a regexp anyway.</i><p>Really? You're surprised regex literals are faster than regex strings?<p>The gem however is interesting and nice and simple, I may end up using it for my future testing. Haven't looked through the code, however: anyone know if it's making any mistakes?