Create and append/remove versus display:block/display:none (version: 0)
By writing javascript web applications It is often common the need to show or hide elements like a div according to the user actions. Is it better to do this by creating and appending the node when it is needed or to create the node on the application start and then just display or hide it?
This benchmark is a performance test of this particular use case.
Comparing performance of: Create and append/remove vs display:block/display:none
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory