Add a delay flag #13

Closed
robstewart57 opened this Issue Jul 23, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@robstewart57

Has it been considered to have a delay flag, that will sleep between sample runs for a specified Xms parameter? I can imagine a Haskell program that use OS resource files such as TCP connections of the like, that are not forcibly killed by the OS, which creates an issue with Haskell programs being immediately re-sampled by Criterion.

Users of criterion might want criterion to offer a --delay Xms flag. The X would not be considered in any timings, but would let the Haskell code "cool down", and all OS resources removed e.g. 2 seconds between is run.

Has a --delay Xms flag been considered?

@bos

This comment has been minimized.

Show comment
Hide comment
@bos

bos Oct 9, 2012

Owner

My preferred way to do something like this would be via a programmatic hook. But I'm not going to actually do that work myself; please submit a pull request if you want to see it added.

Owner

bos commented Oct 9, 2012

My preferred way to do something like this would be via a programmatic hook. But I'm not going to actually do that work myself; please submit a pull request if you want to see it added.

@bos bos closed this Oct 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment