{"id":12870,"date":"2025-03-25T11:16:13","date_gmt":"2025-03-25T15:16:13","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=12870"},"modified":"2025-03-25T11:16:13","modified_gmt":"2025-03-25T15:16:13","slug":"useful-latency-number-for-programmers","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=12870","title":{"rendered":"Useful Latency Number For Programmers"},"content":{"rendered":"<p>\nIf you&rsquo;ve been around Irreal for a while, you know that I like to read about the latency of various computer operations. I find it fascinating but one could say that the data is abstract and dismiss it as &ldquo;interesting but who cares?&rdquo;.\n<\/p>\n<p>\nMohammad Zeya Ahmad has <a href=\"https:\/\/medium.com\/@mohammadzeyaahmad\/latency-numbers-every-programmer-should-know-87301800c605\">an informative post<\/a> that answers that question. He has a list of how much time various common operations take. That&rsquo;s interesting but what make his list stand out is that he draws conclusions from his results.\n<\/p>\n<p>\nFor example, SSDs are about 30 times faster than HDDs so if you have a high performance disk-based task, it makes sense to use SSDs. Of course, there are reasons to prefer HDDs but if performance is your controlling metric, SSDs are probably your best choice.\n<\/p>\n<p>\nFor each group of comparable metrics, Ahmad offers an actionable suggestion. Those groups range from CPU versus Cache and Memory speeds to network transfer times. None of the suggestions are going to turn you into an uber-programmer but they <i>can<\/i> help you squeeze more performance out of your program.\n<\/p>\n<p>\nIt&rsquo;s a nice post and just might help you write better code. Even if it doesn&rsquo;t, it&rsquo;s interesting to see how long these common operations take.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&rsquo;ve been around Irreal for a while, you know that I like to read about the latency of various computer operations. I find it fascinating but one could say that the data is abstract and dismiss it as &ldquo;interesting &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=12870\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[227],"class_list":["post-12870","post","type-post","status-publish","format-standard","hentry","category-programming","tag-latency"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12870"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12870\/revisions"}],"predecessor-version":[{"id":12871,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12870\/revisions\/12871"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}