Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Chrome 135
Windows
Desktop
7 days ago
Test name Executions per second
DOMPurify 19889.7 Ops/sec
Sanitize HTML 103180.4 Ops/sec
HTML Preparation code:
Tests:
  • DOMPurify

  • Sanitize HTML