This benchmark compares the "decodeHTMLEntities" function proposed by https://stackoverflow.com/questions/5796718/html-entity-decode and the solution via DOMParser.
Comparing performance of: CreateElement_div vs DOMParser
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
Test case name
Result
CreateElement_div
DOMParser
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36