Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Mac OS X 10.15
Desktop
14 hours ago
Test name Executions per second
DOMPurify 25434.2 Ops/sec
Sanitize HTML 43869.8 Ops/sec
HTML Preparation code:
Tests:
  • DOMPurify

  • Sanitize HTML