Skip to content

Is logged duration (very) inaccurate? #16

@logidelic

Description

@logidelic

I've been using this module for a while. Thanks for the work on it!

However, based on my logging, I have a concern that the duration reported is quite inaccurate. For example, sometimes I see output such as:

{"date":"2020-07-17T20:40:57.000Z","duration":24.854344,"type":"MarkSweepCompact","forced":true,"flags":64}

However, my own measurement of the previous tick suggests it took something like 150ms rather than 25ms (I am taking into account other stuff going on in the tick, so that's not the issue here). I a difference like this pretty consistently.

Is it possible the duration reported is wrong somehow?

If it's relevant, I'm running Node v12.18.2.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions