More accurate timing through more iterations

Short benchmarks have more noisy jitter. Make tests take around 1-2s to
reduce the variance between runs.
Rewrote speed calculation for ease of reading
Switched to using a timing-threshold approach
Merge pull request #93 from Igalia/timingloop1s

More accurate timing through more iterations