Modified benchmark.rb to calculate overhead