Simple Socket Question?
nevin at smalltalkpro.com
Tue Feb 18 15:48:24 UTC 2003
Avi Bryant wrote:
>If you have Comanche loaded (and thus its ConnectionHandler class), I
>think this is minimal:
>output _ 'HTTP/1.0 200 OK\Content-Type: text/html\\Hello World' withCRs withInternetLineEndings.
>listener _ ConnectionHandler
> onPort: 8000
> handler: [:s | s getData; sendData: output; closeAndDestroy]
> priority: Processor highIOPriority.
>On my system (1.4Ghz Athlon), ab gives me this:
>Concurrency Level: 5
>Time taken for tests: 0.480 seconds
>Complete requests: 1000
>Failed requests: 0
>Broken pipe errors: 0
>Total transferred: 55000 bytes
>HTML transferred: 11000 bytes
>Requests per second: 2083.33 [#/sec] (mean)
>Time per request: 2.40 [ms] (mean)
>Time per request: 0.48 [ms] (mean, across all concurrent requests)
>Transfer rate: 114.58 [Kbytes/sec] received
What code calculated the above stats?
More information about the Squeak-dev