wiki:crawlzilla-1.0-performance

網頁效能測試

於 crawlzilla v.1.0 版 測試搜尋網頁

小結論

用資料量最多,較複雜的中文查詢,測試

  • 同時有 1 個連線作query ,回傳結果的時間僅需 0.030 秒
  • 同時有 10 個連線作query ,回傳結果的時間僅需 0.067 秒
  • 同時有 80 個連線作query ,回傳結果的時間僅需 0.45 秒
  • 同時有 100 個連線作query ,回傳結果的時間僅需 0.56 秒
  • 同時有 400 個連線作query ,回傳結果的時間也僅需 2.1 秒

測試數據

http://secuse.nchc.org.tw:8080/admin_narl_3/

搜尋關鍵字 國家 (因為 國出現 276 次 家出現 268 次)

http://secuse.nchc.org.tw:8080/admin_narl_3/search.jsp?query=%E5%9C%8B%E5%AE%B6

在同樣網段下,測試網頁效能瓶頸

ab -n 300 -c 300 http://secuse.nchc.org.tw:8080/admin_narl_3/search.jsp?query=%E5%9C%8B%E5%AE%B6
  • Document Path: /admin_narl_3/search.jsp?query=%E5%9C%8B%E5%AE%B6
  • Document Length: 14464 bytes
connect:1   request:1 
Time taken for tests:   0.030 seconds
Time per request:       29.699 [ms] (mean)

connect:1   request:10
Time taken for tests:   0.132 seconds
Time per request:       13.214 [ms] (mean)

connect:1   request:100
Time taken for tests:   1.287 seconds
Time per request:       12.873 [ms] (mean)

connect:10   request:100
Time taken for tests:   0.479 seconds
Time per request:       47.946 [ms] (mean)

connect:10   request:10
Time taken for tests:   0.067 seconds
Time per request:       66.712 [ms] (mean)


connect:80   request:80
Time taken for tests:   0.457 seconds
Time per request:       456.648 [ms] (mean)

connect:100   request:100
Time taken for tests:   0.562 seconds
Time per request:       561.528 [ms] (mean)

connect:200   request:200
Time taken for tests:   1.083 seconds
Time per request:       1083.337 [ms] (mean)

connect:300   request:300
Time taken for tests:   1.559 seconds
Time per request:       1558.765 [ms] (mean)

connect:400   request:400
Time taken for tests:   2.104 seconds
Time per request:       2103.772 [ms] (mean)

更換關鍵字,查詢 nchc 則呈現以下結果

  • Document Path: /admin_narl_3/search.jsp?query=nchc
  • Document Length: 6794 bytes
connect:1   request:1
Time taken for tests:   0.007 seconds
Time per request:       7.057 [ms] (mean)

connect:1   request:100
Time taken for tests:   0.541 seconds
Time per request:       5.413 [ms] (mean)

connect:10   request:10
Time taken for tests:   0.021 seconds
Time per request:       20.895 [ms] (mean)

connect:100   request:100
Time taken for tests:   0.146 seconds
Time per request:       145.576 [ms] (mean)

connect:300   request:300
Time taken for tests:   0.503 seconds
Time per request:       503.455 [ms] (mean)

connect:400   request:400
Time taken for tests:   0.706 seconds
Time per request:       705.817 [ms] (mean)

測試 crawlzilla 網頁 (http://secuse.nchc.org.tw:8080/crawlzilla/

ab -n 100 -c 100 http://secuse.nchc.org.tw:8080/crawlzilla/indexpool.jsp

Time taken for tests:   0.044 seconds
Time per request:       43.804 [ms] (mean)
Last modified 14 years ago Last modified on May 4, 2011, 6:00:30 PM