#!/usr/bin/env ruby repetitions = (ARGV[0] || 10).to_i 1.upto repetitions do |iteration| ab_output = `ab -c 1 -n 100 -q -S http://localhost:3000/shop/viewProduct.shtml?product=K9-DL-01` STDOUT.puts "#{iteration} #{ab_output.split("\n").grep(/^Total:/)}" STDOUT.flush end