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
awaitb.suite(`Random reads from table with 10M rows`,b.add('case 1',async()=>{consthostname=awaitsetupServerA({rows: 10_000_000})returnasync()=>{constid=Math.floor(Math.random()*10_000_000)constquery=`SELECT * FROM randoms WHERE id = ${id}`awaitdoQuery(`${hostname}/query`,query)}}),b.add('case 2',async()=>{consthostname=awaitsetupServerB({rows: 10_000_000})returnasync()=>{constid=Math.floor(Math.random()*10_000_000)constquery=`SELECT * FROM randoms WHERE id = ${id}`awaitdoQuery(`${hostname}/query`,query)}}),b.cycle(),b.complete())
What I'm noticing is that setupServerA and setupServerB are getting called twice each, straight away. I previously was making some assumptions that only one server would be active at once which got me tripped up, but even after I fixed it the fact that the setups are all booting at the same time is causing some problems.
What's the reasoning behind calling each setup twice? Is that configurable? Additionally, could each async setup stage be executed sequentially rather than in parallel?
Thanks for building a really useful little tool!
The text was updated successfully, but these errors were encountered:
In my code, I have:
What I'm noticing is that
setupServerA
andsetupServerB
are getting called twice each, straight away. I previously was making some assumptions that only one server would be active at once which got me tripped up, but even after I fixed it the fact that the setups are all booting at the same time is causing some problems.What's the reasoning behind calling each setup twice? Is that configurable? Additionally, could each async setup stage be executed sequentially rather than in parallel?
Thanks for building a really useful little tool!
The text was updated successfully, but these errors were encountered: