jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
comparing selector speed
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<article>
<p>A test</p>
<p><iframe id="123"></iframe></p>
<p>This is text</p>
</article>
<div class="myOuterDivClass" id="myOuterDivId">
<h4 data-i18n="CallContact">Call Contact:</h4>
<span class="contactId">_000000_</span>
<span class="skillName">_IB Skill_</span>
<span class="totalContactTime">_00:00:00_</span>
<hr/>
<div class="status">
<span class="stateName">_Disconnected_</span>
<span class="ani">_123456789_</span>
<span class="stateTime">_00:00:00_</span>
</div>
<div class="linked">
<span>Linked!</span>
<button class="amdOverrideMachine">Machine</button>
<button class="amdOverrideVoicemail">Voicemail</button>
</div>
<span class="label">_label_</span>
<div class="otherInformation"></div>
<hr/>
<button class="accept">Accept</button>
<button class="resume" data-i18n="Resume"></button>
<button class="hold" data-i18n="Hold"></button>
<button class="end" data-i18n="HangUp"></button>
<button class="record" data-i18n="Record"></button>
<button class="mask" data-i18n="Mask"></button>
<button class="unmask" data-i18n="Unmask"></button>
<button class="add" data-i18n="Add"></button>
<div id="__UID__transfer" style="border:solid; border-width: 2px">
<button class="transfer" data-i18n="Transfer"></button>
<button class="conference" data-i18n="Conference"></button>
</div>
<div class="confirmationRequired" style="border:solid; border-width:2px;">
<button class="acceptPreview">Accept</button>
<button class="rejectPreview">Reject</button>
<span class="previewCountdown">00:00:00</span>
</div>
<div class="dispositionSectionElement"></div>
<div class="indcatorDiv"></div>
</div>
var article = document.querySelector('article');
Ready to run.
Test | Ops/sec | |
---|---|---|
find method |
| ready |
context method |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.