Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Sanitize HTML
217.2M/s
DOMPurify without IN_PLACE
15K/s
DOMPurify with IN_PLACE
14K/s

Fastest: Sanitize HTML (15530.0x faster)

View exact numbers
  • Sanitize HTML: 217,193,584 ops/sec
  • DOMPurify without IN_PLACE: 14,503 ops/sec
  • DOMPurify with IN_PLACE: 13,985 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Browser OS User Agent When Created
Mobile Safari 18 iOS 18.3.2 Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Mobile/15E148 Safari/604.1 one year ago
Chrome 132 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 one year ago
Chrome 132 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 one year ago
Chrome 127 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 one year ago
Safari 17 Mac OS X 10.15.7 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 2 years ago
Chrome 120 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 2 years ago
Chrome 120 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 2 years ago