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>
<style>
#card { position:absolute; }
.column { float:left; width:200px; }
</style>
<div id="column0" class="column"></div>
<div id="column1" class="column"></div>
<div id="column2" class="column"></div>
<div id="card"><p>Hello World.</p></div>
<script>
var position = 0;
var colPos = [$("#column0").offset(), $("#column1").offset(), $("#column2").offset()];
var card = $("#card");
function newPosition() {
position++;
if (position>2) { position = 0; }
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Absolute Position |
| ready |
Append |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.