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
Vanilla JS vs Mithril m() vs Mithril precompiled views
<script src="https://rawgit.com/lhorie/mithril.js/a607060267cc958467c9a52d6671986405096e20/mithril.js"></script>
// Settings
// --------
var numberOfRows = 100
, numberOfColumns = 100
;
// Instantiate variables.
var container, childNode, i, j, table, row, cell, rows, cells;
// Create a container for our benchmark.
container = document.createElement('div');
document.body.appendChild(container);
// Clear the contents of the container.
while ((childNode = container.lastElementChild)) {
container.removeChild(childNode);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Vanilla JS |
| ready |
Mithril m() |
| ready |
Mithril precompiled views |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.