Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
DOMPurify with IN_PLACE 23685.5 Ops/sec
Sanitize HTML 450618976.0 Ops/sec
DOMPurify without IN_PLACE 22751.4 Ops/sec
HTML Preparation code:
Tests:
  • DOMPurify with IN_PLACE

  • Sanitize HTML

  • DOMPurify without IN_PLACE