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.
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
benchfrom "leaking" into the performance of the next.