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

Add stress test for spawning processes #519

Merged
merged 1 commit into from
May 18, 2023

Conversation

talex5
Copy link
Collaborator

@talex5 talex5 commented May 17, 2023

This spawns 10,000 subprocesses (100 at a time) running sh -c 'echo N' and checks they each give the correct output.

Interestingly, the eio_posix backend is slightly faster than eio_linux:

$ EIO_BACKEND=posix dune exec -- ./stress/stress_proc.exe
+Finished process stress test: ran 10000 processes in 2.75s

$ EIO_BACKEND=linux dune exec -- ./stress/stress_proc.exe
+Finished process stress test: ran 10000 processes in 3.31s

Someone might like to run that under magic-trace and find out why, as part of #450.

@talex5 talex5 added the enhancement New feature or request label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant