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
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://wilsonpage.github.io/fastdom/fastdom.js"></script>
<script src="http://wilsonpage.github.io/jquery-fastdom/index.js"></script>
<div id='box'>
</div>
<div id='some_elem'>
</div>Benchmark.prototype.setup = function() {
var box = document.getElementById("box");
var strr = "<div class='class1'></div><div class='class1'></div>";
box.innerHTML = strr;
};
Benchmark.prototype.teardown = function() {
var box = document.getElementById("box");
var strr = "<div class='class1'></div><div class='class1'></div>";
box.innerHTML = strr;
};
Ready to run.
| Test | Ops/sec | |
|---|---|---|
| fastdome html | | ready |
| jquery html | | ready |
| jquery css | | ready |
| fastdom css | | ready |
| fastdom hide | | ready |
| fastdom show | | ready |
| jquery hide | | ready |
| jquery show | | ready |
| jquery prepend | | ready |
| fastdom prepend | | ready |
| fastdom prepend string | | ready |
| jquery prepend string | | ready |
| fastdome id html | | ready |
| jquery id html | | ready |
| fastdom single attr | | ready |
| jquery single attr | | ready |
| fastdom single css | | ready |
| jquery single css | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.