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
<style>
#test {
position: relative;
background-color: #274a78;
color: #fff;
width: 160px;
height: 160px;
margin: 24px auto;
}
#test p {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
width: 160px;
text-align: center;
display: table;
}
</style>
fadeToggle by<br>
<button id="jq">jQuery</button>
<button id="tm">TweenMax</button>
<button id="tl">TweenLite</button>
<button id="vl">Velocity</button>
<div id="test"><p>TEST</p></div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/velocity/1.1.0/velocity.min.js"></script>var $div = $('#test'),
$jqB = $('#jq'),
$tmB = $('#tm'),
$tlB = $('#tl'),
$vlB = $('#vl');
var isHidden = function() {
return $div[0].style.display === 'none';
};Ready to run.
| Test | Ops/sec | |
|---|---|---|
| jQuery | | ready |
| TweenMax | | ready |
| TweenLite | | ready |
| Velocity | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.