benchmark in Ruby library