css wildcard selector vs class selector (v2)

Revision 2 of this benchmark created on


Preparation HTML

<div>
<input id='ada-suffix' class='suffix'>
<input id='ada-suffix' class='suffix'>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Wildcard
document.querySelectorAll('input[id$="suffix"]')
ready
Class name
document.querySelectorAll('.suffix')
ready

Revisions

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