evanphx / benchmark-ips

Provides iteration per second benchmarking for Ruby
MIT License
1.72k stars 97 forks source link

Tighten timing loop. #57

Closed chrisseaton closed 8 years ago

chrisseaton commented 8 years ago

The timing loop currently starts the clock, and then creates an array and looks something up in a hash. This patch moves starting the clock until the last possible moment.