createElement: html vs tagname

Benchmark created on


Setup

var iframe, iframeName='zeIframe', iframeSrc='http://google.com/';

Test runner

Ready to run.

Testing in
TestOps/sec
html
iframe = document.createElement('<iframe src="'+iframeSrc+'#xhr" width="1" height="1" name="' + iframeName + '"/>');
ready
tagname
iframe = document.createElement('iframe');
iframe.name = iframeName;
iframe.src = iframeSrc
iframe.width = iframe.height = 1
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.