Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Windows
Desktop
one year ago
Test name Executions per second
DOMPurify with IN_PLACE 13985.4 Ops/sec
Sanitize HTML 111411384.0 Ops/sec
DOMPurify without IN_PLACE 14502.7 Ops/sec
HTML Preparation code:
Tests:
  • DOMPurify with IN_PLACE

  • Sanitize HTML

  • DOMPurify without IN_PLACE