container-selection (v2)

Revision 2 of this benchmark created by Gabriel Schulhof on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
find many
var body = $( "body" );
body.find( ":not(:not([href])):not([data-role='none'])" );
body.find( ":not(:not([src])):not([data-role='none'])" );
body.find( ":not(:not([class])):not([data-role='none'])" );
ready
find * filter
var body = $( "body" ).find( "*" );
body.filter( ":not(:not([href])):not([data-role='none'])" );
body.filter( ":not(:not([src])):not([data-role='none'])" );
body.filter( ":not(:not([class])):not([data-role='none'])" );
ready

Revisions

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

  • Revision 2: published by Gabriel Schulhof on