{"id":97,"date":"2013-08-01T20:18:53","date_gmt":"2013-08-01T20:18:53","guid":{"rendered":"http:\/\/loadfocus.com\/blog\/?p=97"},"modified":"2023-06-19T09:08:34","modified_gmt":"2023-06-19T09:08:34","slug":"what-is-latency-in-load-and-performance-testing","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2013\/08\/what-is-latency-in-load-and-performance-testing","title":{"rendered":"What is Latency in Load and Performance Testing?"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span><p class=\"lead\"><!-- pn-tldr --><\/p>\n<h2>Key takeaways<\/h2>\n<ul>\n<li>Latency is travel time; response time is latency plus server processing.<\/li>\n<li>Confusing the two leads to optimising code when the problem is distance.<\/li>\n<li>Measure from where users are, since latency is a property of the route.<\/li>\n<\/ul>\n<p><!-- \/pn-tldr -->Let&#8217;s say that you want to access a web service or a web page. The response time that you can see with different tools is a sum of the server processing time of the request and the delay involved for your request to reach to server and back.<\/p>\n<p>This is getting more important when remote data centers are hosting the web page or web service.<\/p>\n<h3>Latency + Processing Time = <a title=\"response time \" href=\"https:\/\/loadfocus.com\/blog\/2013\/07\/what-is-response-time-in-performance-testing\/\">Response Time<\/a><\/h3>\n<p>You can have a look at the latency vs. response time chart as you need to understand these different aspects of the system, and it is important for all the parties involved to know the difference between the two when they are doing a performance analysis.<\/p>\n<p>You can use <a title=\"load testing\" href=\"https:\/\/loadfocus.com\">LoadFocus<\/a> in order to stress test your application or API, inspect the latency and response time for all requests.<\/p>\n<p><a href=\"http:\/\/loadfocus.com\/blog\/wp-content\/uploads\/latency.png\"><img loading=\"lazy\" decoding=\"async\" width=\"2276\" height=\"686\" class=\"aligncenter size-full wp-image-101\" src=\"http:\/\/loadfocus.com\/blog\/wp-content\/uploads\/latency.png\" alt=\"latency and response time\" \/><\/a><!-- pn-faq --><\/p>\n<h2>Frequently Asked Questions<\/h2>\n<h3>What is the difference between latency and response time?<\/h3>\n<p>Latency is travel time to the server and back. Response time is that plus the server&#8217;s processing, so response time always includes latency.<\/p>\n<h3>Why does the distinction matter?<\/h3>\n<p>Because confusing them leads to optimising code when the problem is distance. Nothing you do to the application will remove the time a packet spends crossing an ocean.<\/p>\n<h3>How should I measure it?<\/h3>\n<p>From where your users are. Latency is a property of the route, so a figure measured next to the data centre tells you very little about anyone else.<\/p>\n<p><!-- \/pn-faq --><!-- pn-related-reading --><\/p>\n<h2>Related reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/loadfocus.com\/blog\/2026\/06\/impact-of-network-latency-cloud-load-testing-accuracy-2\">Why Network Latency Affects Load Testing Accuracy<\/a><\/li>\n<li><a href=\"https:\/\/loadfocus.com\/blog\/2026\/06\/impact-of-network-latency-cloud-load-testing-accuracy\">Network Latency and Cloud Load Testing Accuracy<\/a><\/li>\n<li><a href=\"https:\/\/loadfocus.com\/blog\/2026\/06\/reducing-api-latency-distributed-load-testing-case-study\">Reducing API Latency With Distributed Load Testing<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>Key takeaways Latency is travel time; response time is latency plus server processing. Confusing the two leads to optimising code when the problem is distance. Measure from where users are, since latency is a property of the route. Let&#8217;s say that you want to access a web service or a web page. The response time&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2013\/08\/what-is-latency-in-load-and-performance-testing\" class=\"more-link\" title=\"Read What is Latency in Load and Performance Testing?\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3746,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[21,22],"class_list":["post-97","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-load-testing","tag-latency-and-response-time","tag-response-time-in-load-testing"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":1,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":2598,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions\/2598"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media\/3746"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}