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
check speeds with complex element
<script>
function createErrorElement() {
var errorElement = document.createElement("tr");
var tableCell_1 = document.createElement("td");
tableCell_1.setAttribute("class", "formErrors");
tableCell_1.innerHTML = " ";
var tableCell_2 = document.createElement("td");
tableCell_2.setAttribute("class", "formErrors");
var span = document.createElement("span");
span.setAttribute("class", "errMsg");
span.appendChild(document.createTextNode('You must specify a value for this field.'));
tableCell_2.appendChild(span);
errorElement.appendChild(tableCell_1);
errorElement.appendChild(tableCell_2);
return errorElement;
}
var errorElement = createErrorElement();
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
clone element |
| ready |
create element |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.