{"id":230715,"date":"2024-06-10T16:38:19","date_gmt":"2024-06-10T08:38:19","guid":{"rendered":"https:\/\/magicalbits.net\/?p=230715"},"modified":"2024-06-10T16:38:19","modified_gmt":"2024-06-10T08:38:19","slug":"the-one-billion-row-challenge-in-go-from-1m45s-to-3-4s-in-nine-solutions","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=230715","title":{"rendered":"The One Billion Row Challenge in Go: from 1m45s to 3.4s in nine solutions"},"content":{"rendered":"<blockquote><p>This article describes the nine solutions I wrote in Go, each faster than the previous. The first, a simple and idiomatic solution, runs in 1 minute 45 seconds on my machine, while the last one runs in 3.4 seconds. As I go, I\u2019ll show how I used Go\u2019s profiler to see where the time was being spent.<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/benhoyt.com\/writings\/go-1brc\/\">The One Billion Row Challenge in Go: from 1m45s to 3.4s in nine solutions<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article describes the nine solutions I wrote in Go, each faster than the previous. The first, a simple and idiomatic solution, runs in 1 minute 45 seconds on my machine, while the last one runs in 3.4 seconds. As I go, I\u2019ll show how I used Go\u2019s profiler to see where the time was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-230715","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230715"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230715\/revisions"}],"predecessor-version":[{"id":230716,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230715\/revisions\/230716"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}