Skip to content

force GC after benchmarking #2

@matthewleon

Description

@matthewleon

Since this already uses hrtime, limiting it to Node, perhaps it's worth forcing the GC after benching?

https://simonmcmanus.wordpress.com/2013/01/03/forcing-garbage-collection-with-node-js-and-v8/

This would stop garbage generated during one run of bench from "leaking" into the performance of the next.

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