<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Comparison on Shai Asher</title><link>https://slow-is-smooth.io/tags/comparison/</link><description>Recent content in Comparison on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 07 Mar 2021 09:00:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/comparison/index.xml" rel="self" type="application/rss+xml"/><item><title>One Program, Seven Runtimes</title><link>https://slow-is-smooth.io/blog/one-program-seven-runtimes/</link><pubDate>Sun, 07 Mar 2021 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/one-program-seven-runtimes/</guid><description>&lt;p&gt;In the last part of this series on Go&amp;rsquo;s stack and heap, eight versions of one program build the same&#10;data: a table of a million entries, a binary tree of two&#10;million nodes, and 65 million short-lived nodes that are built and thrown away. In Go 1.16 a goroutine&#10;that sleeps for a millisecond at a time wakes up to 18 ms late while that happens; in Java with ZGC, 1.2&#10;ms; in CPython, 0.7 seconds, because Python&amp;rsquo;s cycle collector stops everything to look at three million&#10;objects, 86 times. When the work is done and everything is dropped, Go 1.16 hands back 260 MB within&#10;half a minute, and the same program built with Go 1.15 never does as far as &lt;code&gt;top&lt;/code&gt; and RSS can tell,&#10;although its runtime released the memory just as promptly.&lt;/p&gt;</description></item></channel></rss>