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 rel='stylesheet'>
.test { color: #f66; }
</style>
var node_inline = document.createElement('div');
node_inline.style.color = '#f66';
node_inline.innerText = 'foobar';
var node_css = document.createElement('div');
node_css.className = 'test';
node_css.innerText = 'foobar';
if (document.contains(node_inline)) {
document.body.removeChild(node_inline);
}
if (document.contains(node_css)) {
document.body.removeChild(node_css);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Inline style |
| ready |
CSS class |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.