Tests:
-
Programmatic Element creation
-
jQuery Element creation
-
Custom Method: HTMLElement.From()
-
DOMParser
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
Firefox 141 on Windows
View result in a separate tab
Programmatic Element creation
363K/s
Custom Method: HTMLElement.From()
272K/s
jQuery Element creation
124K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Programmatic Element creation
|
362,983 Ops/sec |
|
Custom Method: HTMLElement.From()
|
271,686 Ops/sec |
|
jQuery Element creation
|
124,054 Ops/sec |
|
DOMParser
|
71,834 Ops/sec |
Do you really want to delete benchmark?