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>
table {
border-collapse: collapse;
}
td.border {
padding: 5px;
border: 1px solid;
}
td.noborder {
padding: 0;
}
td.noborder div {
padding: 5px;
border-top: 1px solid;
border-left: 1px solid;
}
td.noborder:last-child div {
border-right: 1px solid;
}
tr:last-child td.noborder div {
border-bottom: 1px solid;
}
td.nopadding {
padding: 0;
}
.border-top-left {
padding: 5px;
border-top: 1px solid;
border-left: 1px solid;
}
.border-bottom {
border-bottom: 1px solid;
}
.border-right {
border-right: 1px solid;
}
</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 | |
---|---|---|
Set borders to table cells and cell has the text |
| ready |
Set borders to table cells and cell has a div which has the text |
| ready |
Set borders to divs inside the cells where div has the text |
| ready |
Set borders to divs inside the cells where div has the text via simplified CSS |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.