This is test about, how V8 caches internal objects and how it affects with the Memory.
But there is no good way to findout the exact amount of memory used by given set of objects without profiling. So, we are using gc()
with following steps to pick a decent value.
For that, you need to run following scripts with --expose gc
NodeJS option.