Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063
Chrome 52
Windows
Other
6 years ago
Test name Executions per second
Programmatic Element creation 17979.2 Ops/sec
jQuery Element creation 4803.9 Ops/sec
Custom Method: HTMLElement.From() 12552.7 Ops/sec
DOMParser 5774.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Programmatic Element creation

  • jQuery Element creation

  • Custom Method: HTMLElement.From()

  • DOMParser


;