|
I get about 140 MB in the "Hash-linked" `foreach_sum8` test on a 64-bit machine.
Thoughts? Am I approaching my measurements completely wrong?
For one, you are not measuring what you think you are measuring: The 140 MB is the memory used by 800000 closures with 3 unique upvalues each, created by the `lvalues()` function. (That's why the `foreach_sum8` test takes two times more memory than the `foreach_sum4` test, and 8 times more memory than the `foreach_sum1` tests.) The list elements are just noise in comparison ...