前陣子看到一個同事對比了mysql的不同版本的運行速度,版本越低的速度越快。今天發布一個jsp的時候想起來,用 tomcat3.x 會不會比 tomcat 5.x 更快呢?說做就做,用tomcat3.3.2 ,tomcat4.1 和tomcat5.5 分別發布了一個簡單的jsp,在pk一下:
線程 平均響應時間 偏離
tomcat 3
10 3 14
20 17 28
30 28 93
50 31 96
100 74 309
tomcat 4
10 7 41
20 17 97
30 31 157
50 57 255
100 117 383
tomcat 5
10 17 83
20 24 187
30 34 317
50 73 413
100 132 1416
測試工具 jmeter,循環次數100。