Cloning a node vs replaceHTML vs innerHTML

This script uses three methods to create 5000 divs, append them, and then remove them all, and measures the time taken.

Note that innerasync takes a bit longer than the others, but "feels" faster, since the button pops back up immediately.

eterate takes several minutes, but does not lock up the browser in the process.