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
<ul id="test" style="height: 10em; overflow: auto"></ul>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
var $test = $( '#test' ), lis = '';
for ( var i = 1; i <= 1001; i++ ) {
lis += '<li>List item #' + i + '</li>';
}
$test.html( lis );
var $lis = $test.children( 'li' ),
$nearStart = $lis.eq( 9 ),
$middle = $lis.eq( 500 ),
$nearEnd = $lis.eq( -10 );
Ready to run.
Test | Ops/sec | |
---|---|---|
Move middle element to start |
| ready |
Move middle element to end |
| ready |
Move near start element to start |
| ready |
Move near start element to end |
| ready |
Move near end element to start |
| ready |
Move near end element to end |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.