Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix benchmarks since iterate memory pages is expensive #1651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aschen
Copy link

@Aschen Aschen commented Jul 10, 2020

I got some strange results by benchmarking promises with those benchmarks. Performances seemed to be worst after Node.js 10.

I reported the issue on Node and one of the developers finds out: nodejs/node#33384

It's because default page size has been divided by 2 after Node.js 10 so iterate over memory pages with process.memoryUsage() to get the rss is at least 2 times slower.

I fixed the benchmark so they don't take the pages iteration time into account.

I also updated the benchmark results.

@Aschen Aschen force-pushed the fix-memory-benchmarks branch from 008e244 to 0dc0ef6 Compare July 10, 2020 05:52
Copy link
Collaborator

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine :]

@Aschen
Copy link
Author

Aschen commented Jan 10, 2021

Should we merge this one so subsequent benchmarks will be correct?

@benjamingr
Copy link
Collaborator

@petkaantonov ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants