I print win object size in console by your size-of module, and also attach it to window, to show it in chrome devTools.
console.log('mywin size is:', sizeof(win)); //shows 22M
window.mywin= win; //shows 20B
The question is that is this difference reasonable? which one is really consumed by memory?
Result:


@miktam
I print
winobject size in console by yoursize-ofmodule, and also attach it to window, to show it in chrome devTools.The question is that is this difference reasonable? which one is really consumed by memory?
Result:

@miktam