Skip to content

please document that (and how) criterion runs GC  #272

@jwaldmann

Description

@jwaldmann

I was running a benchmark with +RTS -Sstderr (trying to find a good -A.. value)

I was surprised to see heavy garbage collection going on - since I was expecting that my function does little allocation, and I put large +RTS -M.. -H.. values.

Then I read #257 (etc.) and deduced that criterion runs the collector. I understand the motivation - but it's not quite clear (to me) from the text at https://hackage.haskell.org/package/criterion-1.6.0.0/docs/Criterion-Main.html, where "garbage collection" is only mentioned in connection to "environments" - but my (very simple) benchmark does not use them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions