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 type="text/css">
.background_color{
height:16px;
width:1000px;
background:#FFCD60;
}
.background_pic_repeat {
height:16px;
width:1800px;
background: url(http://www.mftp.info/20140501/1400212892x-1231565403.png) repeat-x 0 0;
}
.background_pic{
height:16px;
width:1800px;
background: url(http://www.mftp.info/20140501/1400212813x-1231565403.png) no-repeat 0 0;
}
</style>
<ul id="foo1"></ul>
<ul id="foo2"></ul>
<ul id="foo3"></ul>
<script>
var makeHtml = function(className) {
className = className || '';
var items = [];
for (var i = 1; i < 100; i++) {
items.push('<li class="' + className + '">index: ' + i + '</li>');
}
return items.join('');
};
var background_color = makeHtml('background_color');
var background_pic_repeat = makeHtml('background_pic_repeat');
var background_pic = makeHtml('background_pic');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
background_color |
| ready |
background_pic_repeat |
| ready |
background_pic |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.