update perf.rb according to reduce