title: How much memory do golang maps reserve?
body: <p>Given a map allocation where the initial <a href="https://golang.org/ref/spec#Making_slices_maps_and_channels" rel="noreferrer">space</a> is not specified, for example:</p>
  
  <pre><code>foo := make(map[string]int)
  </code></pre>
  
  <p>The <a href="https://golang.org/ref/spec#Making_slices_maps_and_channels" rel="noreferrer">documentation</a> suggests that the memory allocation here is implementation dependent. So (how) can I tell how much memory my implementation is allocating to this map?</p>