Skip to content

Recent performance regressions #39413

Open
@mscdex

Description

@mscdex

Version

master

Platform

Linux foo 5.4.0-58-generic #64~18.04.1-Ubuntu SMP Wed Dec 9 17:11:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

stream

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

6cd12be for some reason is causing a noticeable performance regression for stream.Readable.

For example, before that commit:

$ ./node benchmark/streams/readable-bigunevenread.js n=2000

gives ~815 ops/s on my machine. With that commit I get ~640 ops/s. I don't quite entirely understand why stream.Readable is affected here as it's not being changed in that commit, so it could be something V8-related. I did notice in the profiler output with the commit shows a lot more GC activity than before the commit for some reason.

/cc @jasnell

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues and PRs related to the performance of Node.js.regressionIssues related to regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions