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="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build/yuiloader/yuiloader-min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/dojo/1/dojo/dojo.xd.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js"></script>
<script src="https://www.cinsoft.net/mylib099-min.js"></script>
<script src="http://agafonkin.com/vector-test/zips.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
<script>
Lsvg = L.noConflict();<script src="https://ajax.googleapis.com/ajax/libs/mootools/1.3/mootools-yui-compressed.js"></script>
L_PREFER_CANVAS = true;
</script>
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css" />var div1 = document.createElement('div');
div1.style.width = '600px';
div1.style.height = '400px';
document.body.appendChild(div1);
var div2 = document.createElement('div');
div2.style.width = '600px';
div2.style.height = '400px';
document.body.appendChild(div2);
var map = L.map(div1).setView([42.066, -87.127], 8),
mapSvg = Lsvg.map(div2).setView([42.066, -87.127], 8);
L.Polyline.prototype.options.smoothFactor = 0;
Lsvg.Polyline.prototype.options.smoothFactor = 0;
var i = 0,
len = 10;
document.body.removeChild(div1);
document.body.removeChild(div2);
Ready to run.
| Test | Ops/sec | |
|---|---|---|
| SVG | | ready |
| Canvas | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.