ラズベリーパイを使ってみる – webサイトの表示速度を計測する(ab) –

スポンサーリンク

コンテンツ

コマンドを実行するWEBサイトは、自己が所有するWEBサーバのみ

コマンド

ab

一般的な使い方

ab (ベンチマークをしたいWEBページのURL)

実行時の様子

pi@raspberrypi:~ $ ab http://www.limemo.net/blog/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.limemo.net (be patient).....done


Server Software:        Apache
Server Hostname:        www.limemo.net
Server Port:            80

Document Path:          /blog/
Document Length:        71077 bytes

Concurrency Level:      1
Time taken for tests:   0.082 seconds
Complete requests:      1
Failed requests:        0
Total transferred:      71477 bytes
HTML transferred:       71077 bytes
Requests per second:    12.27 [#/sec] (mean)
Time per request:       81.508 [ms] (mean)
Time per request:       81.508 [ms] (mean, across all concurrent requests)
Transfer rate:          856.38 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       21   21   0.0     21      21
Processing:    60   60   0.0     60      60
Waiting:       25   25   0.0     25      25
Total:         81   81   0.0     81      81

解説

ab(apache bench,アパッチベンチ)はWEBページの表示速度を計測(ベンチマーク)するためのソフトです。
指定したURLの接続時間、処理時間、待機時間、総合時間などWEBページに関する様々な情報を表示します。
・WEBベージがどのくらいの速度で表示されているのか知りたい!
・最近WEBページの表示が遅い気がするけど、本当に遅くなっているのかを確かめたい
という時に役立つかと思います!