{"id":916,"date":"2015-12-02T07:00:47","date_gmt":"2015-12-02T15:00:47","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=916"},"modified":"2015-12-02T07:00:47","modified_gmt":"2015-12-02T15:00:47","slug":"service-response-time","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/service-response-time\/","title":{"rendered":"Service Response Time"},"content":{"rendered":"
There are several ways to get this done but I found using curl gives a good quick test of how long a web response was. You can use a formatted text file or just command line.<\/p>\n
Command line can be something like this:<\/p>\n
\r\n# curl -w "\\ntime_namelookup:\\t%{time_namelookup}\\ntime_connect:\\t\\t%{time_connect}\\ntime_appconnect:\\t%{time_appconnect}\\ntime_pretransfer:\\t%{time_pretransfer}\\ntime_redirect:\\t\\t%{time_redirect}\\ntime_starttransfer:\\t%{time_starttransfer}\\n----------\\ntime_total:\\t\\t%{time_total}\\n" -o \/dev\/null -s https:\/\/www.wormly.com\r\n \r\ntime_namelookup: 0.366\r\ntime_connect: 0.367\r\ntime_appconnect: 0.402\r\ntime_pretransfer: 0.402\r\ntime_redirect: 0.000\r\ntime_starttransfer: 0.408\r\n----------\r\ntime_total: 0.408\r\n<\/pre>\nOr using a text file for formatting:<\/p>\n
\r\n# curl -w "@curl-format.txt" -o \/dev\/null -s https:\/\/www.wormly.com\r\n\r\n time_namelookup: 0.127\r\n time_connect: 0.128\r\n time_appconnect: 0.142\r\n time_pretransfer: 0.142\r\n time_redirect: 0.000\r\n time_starttransfer: 0.150\r\n ----------\r\n time_total: 0.151\r\n<\/pre>\nText file like this:<\/p>\n
\r\n# cat curl-format.txt \r\n\\n\r\n time_namelookup: %{time_namelookup}\\n\r\n time_connect: %{time_connect}\\n\r\n time_appconnect: %{time_appconnect}\\n\r\n time_pretransfer: %{time_pretransfer}\\n\r\n time_redirect: %{time_redirect}\\n\r\n time_starttransfer: %{time_starttransfer}\\n\r\n ----------\\n\r\n time_total: %{time_total}\\n\r\n\\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"There are several ways to get this done but I found using curl gives a good quick test of how<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-916","post","type-post","status-publish","format-standard","hentry","category-curl"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=916"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/916\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}