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

Multi-process Mode #215

Merged
merged 40 commits into from
Aug 21, 2023
Merged

Multi-process Mode #215

merged 40 commits into from
Aug 21, 2023

Conversation

alexfernandez
Copy link
Owner

Adds the option --cores n to start multiple processes. Shares total requests and requests per second among all available cores, aggregates the results.

Also in this PR:

  • Start test server in multi-process mode by default, using half the available cores.
  • Start cluster mode using NODE_CLUSTER_SCHED_POLICY, the only way with ESM. Reported issue to Node.js core.* Change values in result: rps is now effectiveRps, totalTimeSeconds is now elapsedSeconds. Old values kept for compatibility.
  • Compute elapsed seconds in result using start and end times, with BigInt returned by process.hrtime.bigint().

For immediate merge, to be released as v6.3.0.

@alexfernandez alexfernandez merged commit ee36172 into main Aug 21, 2023
@alexfernandez alexfernandez deleted the feature/multi-process branch August 21, 2023 08:32
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.

1 participant