Benchmarking ruby methods and code snippets