Remotingsの計測

自分でサンプル実装したS2Remoting(RMI),SeasarSandboxProjectで公開されているS2Hessian,S2XmlRpcを動かしてみる。

とりあえず、Hello(HelloImpl).say()を100回呼び出し、その時間をMeasurementInterceptorを使って計測してみた結果は以下の通り(単位:msec)。

[S2XmlRpc]

MeasureImpl#xExecute() : 25978

[S2Hessian]

MeasureImpl#hExecute() : 25527

[S2Burlap]

MeasureImpl#bExecute() : 25446

[S2Remoting(RMI)]

MeasureImpl#rExecute() : 491

[Local]

MeasureImpl#lExecute() : 0

[Plain]

MeasureImpl#pExecute() : 0

※LocalはS2Containerからのインスタンスの取得、PlainはS2Containerを使用せずにインスタンス生成。

Tomcat(Ver5)を通す分、時間がかかっているようですが、Tomcatはほぼデフォルト設定なので、それが悪いかも。Tomcatの設定をちと調べてみたいところ。