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

release
Slava Pestov 2010-09-10 18:46:14 -07:00 committed by Slava Pestov
parent 56ce338007
commit 590586e551
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
[ simple-server ] "Simple server" spawn drop
[ [ simple-client ] "Simple client" spawn drop ] times
[ yield [ simple-client ] "Simple client" spawn drop ] times
counter get await
stop-server