.attribute vs setAttribute/removeAttribute vs setAttributeNodeNS/removeAttributeNode vs attributes.setNamedItem/attributes.removeNamedITem (version: 0)
Comparing performance of: .attribute vs setAttribute/removeAttribute vs setAttributeNode/removeAttributeNode vs attributes.setNamedItem/attributes.removeNamedITem
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