-
Notifications
You must be signed in to change notification settings - Fork 10
run gc before benching #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Performance/Minibench.purs
Outdated
|
|
||
| -- | Force garbage collection. | ||
| -- | Requires node to be run with the --force-gc flag. | ||
| foreign import gc :: forall eff. eff () Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not forall eff. Eff eff Unit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually the type checker protects me from my sloppiness... But not always :)
|
@paf31 Just a gentle ping on this, as I've been using this lately with List changes, and I believe I've addressed the issue you signaled above. |
| foreign import hrTime :: forall eff. EffFn1 eff (Array Int) (Array Int) | ||
|
|
||
| -- | Force garbage collection. | ||
| -- | Requires node to be run with the --force-gc flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this comment should be moved to the top level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking this in #21
|
Thanks! |
|
We can change the docs later. |
addresses #2
Did not put in option to run GC during/after benchmarks... Which seems less important, but maybe something to do in the future.