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="http://agafonkin.com/vector-test/zips.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script>
Lsvg = L.noConflict();
L_PREFER_CANVAS = true;
</script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/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 = 100;
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.