Improve benchmark script to avoid hard-coded # of times to tick.