benchmark.sockets: yield between spawning clients so we don't backlog requests (we call accept with a limit of 128)

Slava Pestov 2010-09-10 18:46:14 -07:00 committed by Slava Pestov
parent 382bf1c227
commit 9e8a22dfa6
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ CONSTANT: number-of-requests 1000
[ server set ] [ addr>> port>> port set ] bi [ server set ] [ addr>> port>> port set ] bi
[ simple-server ] "Simple server" spawn drop [ simple-server ] "Simple server" spawn drop
[ [ simple-client ] "Simple client" spawn drop ] times [ yield [ simple-client ] "Simple client" spawn drop ] times
counter get await counter get await
stop-server stop-server