スポンサーリンク
curlはWEBサービスやAPIを実行するクライアントとして使えますが、サービスの正常性監視に使う人も多いかと思います。
今回はそんな時に使える、時間を測定するオプションについて調べてみました。
今回説明するオプションは -w
オプションとセットで使います。
-w オプションは、curlの実行時に得たいろいろな情報を標準出力(もしくはファイル)に出力するオプションです。
早速ですが、このオプションで使える 時間測定に関係するオプション
は以下の通りです。
以下がオプションの一覧です。右側がmanの説明をgoogle翻訳した内容です
オプション | manページ訳 |
---|---|
time_appconnect | 開始からリモートホストへのSSL / SSH / etc接続/ハンドシェイクが完了するまでに要した時間(秒単位)。 |
time_connect | リモートホスト(またはプロキシ)へのTCP接続が完了するまでに要した時間(秒単位)。 |
time_namelookup | 開始から名前解決が完了するまでに要した時間(秒単位)。 |
time_pretransfer | 開始からファイル転送が開始される直前までにかかった時間(秒単位)。これには、関係する特定のプロトコルに固有のすべての転送前コマンドとネゴシエーションが含まれます。 |
time_redirect | 最終トランザクションが開始されるまでに、名前検索、接続、事前転送、および転送を含むすべてのリダイレクト手順に要した時間(秒単位)。 time_redirectは、複数のリダイレクトに対する完全な実行時間を示します。 (7.12.3で追加) |
time_starttransfer | 開始から最初のバイトが転送される直前までにかかった時間(秒単位)。これには、time_pre-transferと、サーバーが結果を計算するのに必要な時間も含まれます。 |
time_total | フル操作が継続した合計時間(秒単位)。時間はミリ秒の分解能で表示されます。 |
ちなみに全てのオプションを付けた場合の例はこんな感じです。(yahooに対して使ってみた場合)
コマンド
curl -o /dev/null -sS -w "time_appconnect: %{time_appconnect}\ntime_connect: %{time_connect}\ntime_namelookup: %{time_namelookup}\ntime_pretransfer: %{time_pretransfer}\ntime_redirect: %{time_redirect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" https://www.yahoo.co.jp
何がなんやらさっぱり。。。
結果は以下の通り。
time_appconnect: 0.164620
time_connect: 0.008357
time_namelookup: 0.004234
time_pretransfer: 0.164760
time_redirect: 0.000000
time_starttransfer: 0.186998
time_total: 0.191287
以上です。
スポンサーリンク
2022/05/09 07:56:28
levitra cost uk does levitra work better than cialis https://xclevitradb.com/
2022/05/09 08:17:48
online doctor to prescribe hydroxychloroquine hydroxychloroquine pill image
2022/05/09 08:37:32
buy levitra what is levitra for
2022/05/09 10:37:14
low cost levitra levitra sex https://glevitrargu.com/
2022/05/10 14:10:29
sildenafil pronunciation reddit sildenafil https://sildenafilkiol.com/
2022/05/11 00:22:53
cialis at walmart walmart cialis pharmacy https://dccialisxvf.com/
2022/05/11 08:36:16
viagra online lowest price price viagra 50mg https://aviagrasbt.com/
2022/05/11 15:42:11
pharmacy store in usa Cefadroxil
2022/05/12 19:06:45
hydroxychloroquine and covid hydroxychloroquine
2022/05/12 20:29:57
stromectol ivermectin horse paste for humans
2022/05/14 10:18:20
levitra and premature ejaculation levitra medication https://xclevitradb.com/
2022/05/14 12:57:38
need help writing dissertation
dissertation help in dubai
need help writing dissertation
2022/05/14 13:01:05
levitra bayer 10 mg kaufen levitra canada pharmacy https://glevitrargu.com/
2022/05/15 07:58:58
writing methodology for dissertation
apa 7th edition dissertation example
ncsu dissertation
2022/05/15 17:11:15
where to buy sildenafil online can you take sildenafil for erectile dysfunction? https://sildenafilkiol.com/
2022/05/16 07:02:50
dissertation help in bangalore
need help with my dissertation
dissertation help service villeurbanne
2022/05/16 18:36:39
where to buy cialis online cialis viagra levitra comparison
2022/05/17 19:01:57
what is stromectol can humans take ivermectin paste
2022/05/17 23:18:50
2022/05/18 03:01:29
provigil 200mg over the counter provigil 200mg oral provigil 100mg uk
2022/05/18 08:50:55
http://erythromycin1m.com/# erythromycin vs tetracycline
2022/05/18 16:13:30
levitra blindness levitra tab https://glevitrargu.com/
2022/05/18 13:31:15
levitra for sale canada levitra cost per pill walgreens https://xclevitradb.com/
2022/05/19 11:58:16
2022/05/20 16:38:51
erythromycin brand https://erythromycin1m.com/#
2022/05/19 19:38:51
writing dissertation tips
dissertation awards
writing a dissertation introduction
2022/05/19 20:18:39
sildenafil cvs sildenafil and nitrates https://sildenafilkiol.com/
2022/05/19 21:40:58
buy modafinil sale modafinil buy online
2022/05/20 02:40:47
online pharmacy canada cialis buying cialis
2022/05/20 06:27:06
cialis diabetes generic cialis 10mg https://dccialisxvf.com/
2022/05/20 14:46:29
sildenafil 20 mg mexico viagra online in india https://aviagrasbt.com/
2022/05/20 22:47:04
online pharmacy store usa canada drugs review
2022/05/20 23:57:03
order modafinil pill modafinil 100mg generic
2022/05/21 07:19:32
buy generic modafinil 200mg purchase modafinil online cheap
2022/04/07 23:42:48
free viagra generic viagra india viagra online without prescription viagra generic online
2022/04/07 20:42:45
buy cialis without prescription buy tadalafil 20mg price
2022/04/09 07:03:07
buy viagra online without prescription online pharmacy viagra
2022/04/09 16:03:05
tadalafil price comparison tadalafil generic in usa
2022/04/10 07:03:51
sildenafil cvs price max dose of sildenafil
2022/04/10 07:18:09
can you drink wine or liquor if you took in tadalafil tadalafil pulmonary arterial hypertension
2022/04/11 17:30:55
canada king pharmacy discount drugs online pharmacy
2022/04/11 20:34:16
how much tadalafil to take where can i get tadalafil
2022/04/13 03:16:29
sildenafil 100 sildenafil and nitrates
2022/04/13 05:19:28
where can i buy cheap viagra buy sildenafil paypal
2022/04/13 08:57:17
cialis professional cheapest cialis tadalafil 20 mg
2022/04/13 12:02:10
price comparison levitra viagra cialis levitra duration of action
2022/04/13 19:42:52
viagra professional does viagra work for women
2022/04/15 05:37:35
sky pharmacy canada sildenafil citrate online pharmacy
2022/04/14 18:44:09
generic viagra sale 100mg sildenafil for sale
2022/04/15 14:08:09
prescription drugs information world best pharmacy online store reviews
2022/04/15 19:08:32
austria pharmacy online canadian pharmacy naples fl
2022/04/16 13:23:56
Indocin online canadian pharmacy
2022/04/16 10:03:41
ivermectin price in india where can i buy ivermectin
2022/04/17 11:23:30
order viagra online sildenafil 100mg tablets for sale
2022/04/17 12:14:03
stromectol ivermectin
2022/04/17 19:45:31
mylan tadalafil best research tadalafil
2022/04/18 07:09:34
use cialis promise coupon orlando fl order cialis from canada
2022/04/18 15:34:18
vigara generic sildenafil no prescription
2022/04/18 23:51:50
ivermectin cream for scabies horse stromectol
2022/04/19 18:58:49
dose levitra cost of levitra without insurance
2022/04/19 21:44:37
is levitra cheaper than viagra levitra coupon 2016
2022/04/20 12:57:48
best price for viagra alternatives viagra
2022/04/20 18:05:36
kamagra oral jelly cvs buy kamagra now
2022/04/21 03:04:04
ingredients in cialis what is cialis
2022/04/21 13:31:42
buy sildenafil without prescription generic viagra 150 mg
2022/04/21 21:47:51
most reliable canadian pharmacy trusted canadian online pharmacies
2022/04/22 07:15:33
viagra vs cialis/strong> generic cialis with dapoxetine 80mg
2022/04/22 23:19:24
hometown pharmacy animal pharmacy online
2022/04/23 02:10:38
riteaid pharmacy online pharmacy tech classes
2022/04/23 12:14:52
over the counter drugs viagra over the counter
2022/04/23 19:20:07
cialis professional cheap cialis online australia
2022/04/24 07:32:36
cialis canadian pharmacy good rx pharmacy discount card
2022/04/24 18:07:37
online medicine shopping canada mail order pharmacy
2022/04/25 11:15:01
family pharmacy creighton university online pharmacy school
2022/04/27 12:32:57
stromectol 3mg stromectol australia
2022/04/29 11:11:16
canadian pharmacies-247 in which store you can get pharmacy technician job easily https://jzpharmacyukj.com/
2022/04/29 14:00:13
is levitra cheaper than viagra is levitra stronger than viagra https://glevitrargu.com/
2022/04/29 21:49:08
low cost viagra with prescription black viagra pill
2022/04/30 18:45:04
sildenafil 50 mg reviews sildenafil indications https://sildenafilkiol.com/
2022/05/01 04:55:13
pharmacy store near me Lotensin https://dtupharmyjn.com/
2022/05/01 13:19:41
ivermectin prescription ivermectin where to purchase https://stromectolujlo.com/
2022/05/01 21:54:41
viagra online paypal canada price for 100mg viagra https://sgiviagraikn.com/
2022/05/01 23:23:37
ivermectin 12mg ivermectin amazon
2022/05/03 13:48:58
where to buy generic levitra online do you need a prescription for levitra https://xclevitradb.com/
2022/05/05 07:04:09
cialis vs flomax free 30 day trial cialis https://dccialisxvf.com/
2022/05/05 15:06:22
female viagra pills in india cheap viagra no prescription https://aviagrasbt.com/
2022/05/05 16:23:44
ajanta pharma kamagra cheap generic viagra co uk kamagra oral jelly 100mg
2022/05/05 22:36:02
online pharmacy australia paypal canadian pharmacy mall
2022/05/06 06:40:05
viagra for men how much does viagra cost per pill