{"id":8280,"date":"2026-05-15T09:31:23","date_gmt":"2026-05-15T07:31:23","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8280"},"modified":"2026-06-14T18:28:46","modified_gmt":"2026-06-14T16:28:46","slug":"checking-website-response-time-via-console-ssh","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/","title":{"rendered":"Checking Website Response Time via Console (SSH)"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">When troubleshooting website performance, it is often useful to measure how quickly a server responds to requests. If you have SSH access to a server, you can use the <code>curl<\/code> command-line tool to gather detailed timing information without relying on external testing services.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This method is useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Troubleshooting slow websites<\/li>\n\n\n\n<li>Measuring server response times<\/li>\n\n\n\n<li>Testing network connectivity<\/li>\n\n\n\n<li>Verifying performance after configuration changes<\/li>\n\n\n\n<li>Monitoring website availability<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#What_Is_cURL\" >What Is cURL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Measuring_Website_Response_Time\" >Measuring Website Response Time<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Understanding_the_Results\" >Understanding the Results<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Server_IP\" >Server IP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#DNS_Lookup\" >DNS Lookup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Connection_Time\" >Connection Time<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#TLS_Handshake\" >TLS Handshake<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Time_to_First_Byte_TTFB\" >Time to First Byte (TTFB)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Total_Time\" >Total Time<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Example_Output\" >Example Output<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Check_Only_the_HTTP_Status_Code\" >Check Only the HTTP Status Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Testing_Multiple_Times\" >Testing Multiple Times<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/checking-website-response-time-via-console-ssh\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Is_cURL\"><\/span>What Is cURL?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-1685827007\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">cURL is a command-line tool used to transfer data using various protocols, including HTTP, HTTPS, FTP, and SMTP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Besides downloading content, cURL can also display detailed information about a connection, including DNS lookup time, connection time, server response time, and total request duration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Measuring_Website_Response_Time\"><\/span>Measuring Website Response Time<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following command displays several useful performance metrics for a website:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -o \/dev\/null -s -w \"\\\nServer IP: %{remote_ip}\\n\\\nDNS Lookup: %{time_namelookup} sec\\n\\\nConnection Time: %{time_connect} sec\\n\\\nTLS Handshake: %{time_appconnect} sec\\n\\\nTime to First Byte: %{time_starttransfer} sec\\n\\\nTotal Time: %{time_total} sec\\n\" \\\nhttps:&#47;&#47;example.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>https:\/\/example.com<\/code> with the website you want to test.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Understanding_the_Results\"><\/span>Understanding the Results<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Server_IP\"><\/span>Server IP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Displays the IP address of the server that responded to the request.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"DNS_Lookup\"><\/span>DNS Lookup<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Shows how long it took to resolve the domain name into an IP address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Connection_Time\"><\/span>Connection Time<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Measures the time required to establish a TCP connection to the server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TLS_Handshake\"><\/span>TLS Handshake<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For HTTPS websites, this shows how long it took to establish the encrypted SSL\/TLS connection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Time_to_First_Byte_TTFB\"><\/span>Time to First Byte (TTFB)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">One of the most important metrics.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It measures the time between sending the request and receiving the first byte of the response. A high TTFB often indicates:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Slow application performance<\/li>\n\n\n\n<li>Database bottlenecks<\/li>\n\n\n\n<li>Overloaded servers<\/li>\n\n\n\n<li>Inefficient code<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Total_Time\"><\/span>Total Time<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The total duration of the request, including connection setup and content delivery.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example_Output\"><\/span>Example Output<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Server IP: 93.184.216.34\nDNS Lookup: 0.005 sec\nConnection Time: 0.030 sec\nTLS Handshake: 0.065 sec\nTime to First Byte: 0.120 sec\nTotal Time: 0.180 sec\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Check_Only_the_HTTP_Status_Code\"><\/span>Check Only the HTTP Status Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you only want to verify that a website is responding correctly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -s -o \/dev\/null -w \"%{http_code}\\n\" https:\/\/example.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>200\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Common status codes include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>200<\/code> \u2013 OK<\/li>\n\n\n\n<li><code>301<\/code> \u2013 Redirect<\/li>\n\n\n\n<li><code>404<\/code> \u2013 Page not found<\/li>\n\n\n\n<li><code>500<\/code> \u2013 Internal server error<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testing_Multiple_Times\"><\/span>Testing Multiple Times<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To obtain more reliable results, run the test several times:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for i in {1..5}; do\n    curl -o \/dev\/null -s -w \"Total Time: %{time_total} sec\\n\" https:\/\/example.com\ndone\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This helps identify intermittent slowdowns and provides a more realistic view of website performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>curl<\/code> utility is a simple but powerful tool for measuring website response times directly from the command line. By analyzing metrics such as DNS lookup time, connection time, Time to First Byte (TTFB), and total request duration, you can quickly identify potential performance bottlenecks and verify whether a website is responding as expected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[54],"manual_kb_tag":[1741,2007,4456,6254,7886,7887,7888,361,1327,1588],"class_list":["post-8280","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-ssh","manual_kb_tag-tls-handshake","manual_kb_tag-dns-lookup","manual_kb_tag-time-to-first-byte","manual_kb_tag-server-response-time","manual_kb_tag-connection-time","manual_kb_tag-curl-performance-testing","manual_kb_tag-command-line-testing","manual_kb_tag-website-performance","manual_kb_tag-curl-command","manual_kb_tag-http-status-codes"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8280\/revisions"}],"predecessor-version":[{"id":8281,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8280\/revisions\/8281"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=8280"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8280"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=8280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}