Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
one month ago
Test name Executions per second
DOMPurify with IN_PLACE 9625.6 Ops/sec
Sanitize HTML 99675384.0 Ops/sec
DOMPurify without IN_PLACE 7257.9 Ops/sec
HTML Preparation code:
Tests:
  • DOMPurify with IN_PLACE

  • Sanitize HTML

  • DOMPurify without IN_PLACE