jQuery Element Creation JC

Benchmark created by Jonathan Cardoso [JCM] on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Basic
$( 'div' );
ready
Only opening tag
$( '<div>' );
ready
Opening and closing tag
$( '<div></div>' );
ready
Self-closing tag
$( '<div/>' );
ready
DOM method
$( document.createElement( 'div' ) );
ready

Revisions

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

  • Revision 1: published by Jonathan Cardoso [JCM] on