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="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"
/>
<script id="divTemplate" type="text/x-jquery-tmpl">
< div class = "foo-${variable}" / >
</script>
<div id="foo">
FOO
</div>
<div id="bar">
BAR
</div>
<div id="template">
Hello World!
</div>
var foo = $("#foo");
var bar = $("#bar");
var destination = $("#template");
var counterS = 0;
$.template("divTemplate", '<div class = "foo-${variable}" />');
counterS = 0;
Ready to run.
Test | Ops/sec | |
---|---|---|
Add DIV with class via string |
| ready |
Add DIV with class via method |
| ready |
add via template |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.