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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
var pages = [
[],
[],
[],
[],
[],
];
for(var p=0; p<pages.length; p++) {
for(var i=0; i<40; i++) {
var colors = ['red', 'blue', 'green'];
var sizes = [[20, 20], [40, 40], [40, 60]];
var distribution = [0, 0, 0, 0, 0, 0, 0, 0, 1, 2];
var rnd = distribution[Math.ceil(Math.random()*10) % 10];
pages[p].push($('<div class="item">').css({
backgroundColor: colors[rnd],
width: sizes[rnd][0] + 'px',
height: sizes[rnd][1] + 'px',
float: 'left'
}).html(i)[0]);
}
pages[p] = $(pages[p]).filter('.item');
}
$('#container').remove();
Ready to run.
Test | Ops/sec | |
---|---|---|
Masonry default |
| ready |
Masonry local 1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.