You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darwin bwasti-mbp 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
What steps will reproduce the bug?
import{spawn}from"bun";constt0=performance.now()constparallel=1000// this number needs to be bigletprocs=[]for(leti=0;i<parallel;++i){procs.push(newResponse(spawn(["bun","wrk.ts"]).stdout).text())}consttexts=awaitPromise.all(procs);constt1=performance.now()console.log(`done, ${parallel} parallel executions in`,(Math.round(t1-t0))/1e3,'seconds')
Version
0.2.1
Platform
Darwin bwasti-mbp 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
What steps will reproduce the bug?
wrk.ts is:
How often does it reproduce? Is there a required condition?
as long as
parallel
in the above code is somewhat unreasonably large (like 1000)What is the expected behavior?
shouldn't segfault, but could throw an error saying "that's way too many processes to spawn"
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: