createContextualFragment vs InnerHtmlFastest: createContextualFragment (1.1x faster)
37 ops/sec
33 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| createContextualFragment | |
| InnerHtml |
| Test name | Executions per second |
|---|---|
| ✓ createContextualFragment | 50 Ops/sec |
| InnerHtml | 41 Ops/sec |