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

Node spawn #4

Merged
merged 7 commits into from
Jul 19, 2024
Merged

Node spawn #4

merged 7 commits into from
Jul 19, 2024

Conversation

maxmcd
Copy link
Owner

@maxmcd maxmcd commented Jul 14, 2024

No description provided.

@maxmcd maxmcd merged commit c24e7e8 into main Jul 19, 2024
the compiled, thread-pool languages are much faster again.

Node's `spawn` performance does seem to be notably bad. [This
thread](https://github.com/node/node/issues/14917) was an interesting read,
Copy link

Choose a reason for hiding this comment

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

This link is broken, should be nodejs/node#14917

worker.requests -= 1;
```

Deno performs far better before this fix! Node and Bun both perform better once
Copy link

Choose a reason for hiding this comment

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

I think something like

This 'fix' makes Deno a lot slower, but Node and Bun a lot faster! I wonder if that's because one has a faster toString() implementation or higher overhead for res.write?

Might be easier to read and understand

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