evanphx / benchmark-ips

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

Add factor to control times parameter #94

Closed ioquatix closed 4 years ago

ioquatix commented 4 years ago

https://github.com/evanphx/benchmark-ips/blob/0bb23ea1f5d8f65416629505889f6dfc550fa4a6/lib/benchmark/ips/job.rb#L256

Do you think it's possible to add a offset and/or factor to control the times parameter?

It would be nice if we could tell it to run at least 10 iterations minimum, for example.

eregon commented 4 years ago

I think this is fixed by https://github.com/evanphx/benchmark-ips/pull/96