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>
/* styles for rendering table as table */
table {
border-collapse: collapse;
}
td {
border: 1px solid;
padding: 5px;
}
/* styles for rendering table as div */
.table {
display: table;
border-collapse: collapse;
}
.tr {
display: table-row;
}
.td {
display: table-cell;
border: 1px solid;
padding: 5px;
}
</style>
<div id="ctr"></div>
ROW_COUNT = 10;
COL_COUNT = 10;
DATA = [];
for (var r = 0; r < ROW_COUNT; r++) {
var row = [];
for (var c = 0; c < COL_COUNT; c++) {
var text = String.fromCharCode(65 + c) + r; // A0, B1, C33, ...
row.push(text);
}
DATA.push(row);
}
document.getElementById("ctr").innerHTML = "";
Ready to run.
Test | Ops/sec | |
---|---|---|
Rendering table as table |
| ready |
Rendering table as div |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.