ApacheBenchの使用方法と自分のWebサイトのベンチマーク方法を理解しようとしています。デフォルトのサイトプロジェクトをインストールしました(ASP.NET MVCですが、.NETを使用していない場合は、読むのをやめないでください)。
何も変更しませんでした。新しいプロジェクトを追加します。confurationをRELEASEに設定します。デバッグなしで実行します。(つまり、LIVEモードです)。はい、これは組み込みのWebサーバーであり、製品グレードのIISやApacheなどではありません。
結果は次のとおりです:-
C:\Temp>ab -n 1000 -c 1 http://localhost:50035/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: ASP.NET
Server Hostname: localhost
Server Port: 50035
Document Path: /
Document Length: 1204 bytes
Concurrency Level: 1
Time taken for tests: 2.371 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 1504000 bytes
HTML transferred: 1204000 bytes
Requests per second: 421.73 [#/sec] (mean)
Time per request: 2.371 [ms] (mean)
Time per request: 2.371 [ms] (mean, across all concurrent requests)
Transfer rate: 619.41 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.1 0 16
Processing: 0 2 5.5 0 16
Waiting: 0 2 5.1 0 16
Total: 0 2 5.6 0 16
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 16
95% 16
98% 16
99% 16
100% 16 (longest request)
C:\Temp>
今、私は私が何を見るべきか正確にはわかりません。
まず、1秒あたりのリクエスト数を確認します。したがって、300 reqs / secを処理する必要がある場合、これは、平均421 reqs / secを処理すると言っているのでしょうか?
次に、同時追加を追加する理由は何ですか?のように、1つの同時実行で1000ヒットがある場合、2つの同時実行で500ヒットとどのように異なりますか?他のリクエストをブロックするコードがあるかどうかをテストするためですか?
最後に、私が注意しなければならない結果から私が見逃した重要なことはありますか?
ありがとう :)