Is `namedtuple` really as efficient in memory usage as tuples? My test says NO : <p>It is stated in the Python documentation that one of the advantages of <code>namedtuple</code> is that it is as <em>memory-efficient</em> as tuples. </p>

<p>To validate this, I used iPython with <a href="https://github.com/ianozsvald/ipython_memory_usage" rel="noreferrer">ipython_memory_usage</a>. The test is shown in the images below:</p>

<p><a href="https://i.stack.imgur.com/Xl2oi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Xl2oi.png" alt=""></a>
<a href="https://i.stack.imgur.com/RESLQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RESLQ.png" alt=""></a></p>

<p>The test shows that:</p>

<ul>
<li><code>10000000</code> instances of <code>namedtuple</code> used about <code>850 MiB</code> of RAM</li>
<li><code>10000000</code> <code>tuple</code> instances used around <code>73 MiB</code> of RAM</li>
<li><code>10000000</code> <code>dict</code> instances used around <code>570 MiB</code> of RAM</li>
</ul>

<p>So <code>namedtuple</code> used <strong>much more</strong> memory than <code>tuple</code>! Even <strong>more</strong> than <code>dict</code>!!</p>

<p>What do you think? Where did I go wrong?</p>
