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
Tests the performance of drawing an image to the canvas with a null transform vs a mirror transform.
<canvas id="surface" width="100" height="100"></canvas>
<script>
var dest = document.getElementById("surface");
var context = dest.getContext("2d");
var source = document.createElement("canvas");
source.width = 100;
source.height = 100;
ui.benchmarks[1].setup = function() {
// set mirror transform for second test
context.scale(-1, 1);
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Null transform (default) |
| ready |
Mirror transform (negative horizontal scale) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.