Test name | Executions per second |
---|---|
[Unsafe] HTML string to text via creating an unattached DOM element. | 22.5 Ops/sec |
[Unsafe] HTML string to text via reusing an unattached DOM element. | 22.4 Ops/sec |
[Safe] HTML string to text via creating and using a DOMParser | 15.7 Ops/sec |
[Safe] HTML string to text via reusing a DOMParser | 16.2 Ops/sec |
[Safe] HTML string to text via the a new Document | 20.3 Ops/sec |
[Safe] HTML string to text via the a cached Document | 36.0 Ops/sec |
[Safe] HTML string to text via the DOMPurify library | 4.9 Ops/sec |