ruby: Add snippet for benchmarking