DOMPurify with IN_PLACE vs Sanitize HTML vs DOMPurify without IN_PLACEFastest: Sanitize HTML (15530.0x faster)
217,193,584 ops/sec
14,503 ops/sec
13,985 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| DOMPurify with IN_PLACE | |
| Sanitize HTML | |
| DOMPurify without IN_PLACE |
| Test name | Executions per second |
|---|---|
| ✓ Sanitize HTML | 478,799,456 Ops/sec |
| DOMPurify with IN_PLACE | 39,073 Ops/sec |
| DOMPurify without IN_PLACE | 38,070 Ops/sec |