Performance: is_a? vs grep

When doing benchmarks in Ruby, I recommend calling GC.start. Just as a hope in getting the garbage collector to kick in somewhat consistently. If your previous run created garbage you could affect the next run if the GC kicks in.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.