S, Philippe Marschall piše:
No, I build my own buffer and go straight to Socket. AJP is packet oriented with 8k packets so this is easy.
Reuse of the same buffer (same ByteArray) on raw socket is also the technique used in Swazoo and results are similar. I'm preparing a similar benchmark including the comparison with VW, so that we can see how Pharo is progressing on network field and also in general.
One thing I noted with testing Swazoo is that is doesn't support Keep-Alive with HTTP 1.0. Unfortunately ApacheBench uses exactly this.
Correcting this was easy: Swazoo patch to allow Keep Alive (ab -k) over HTTP 1.0: HTTPConnection>>getAndDispatchMessages ... (self task request isHttp10 and: [self task request isKeepAlive not]) ifTrue: [self close]. ... Best regards Janko -- Janko Mivšek Aida/Web Smalltalk Web Application Server http://www.aidaweb.si