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/dojo/1.5/dojo/dojo.xd.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/_Widget.xd.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/_Templated.xd.js"></script>
<script>
dojo.ready(function() {
var tmpl = '<div class="outer"><div class="inner" dojoAttachPoint="inner">inner</div></div>',
my = {},
sel = '.inner';
dojo.declare("my.ThingerA", [dijit._Widget, dijit._Templated], {
templateString: tmpl,
postCreate: function() {
dojo.query(sel, this.domNode);
}
});
dojo.declare("my.ThingerB", [dijit._Widget, dijit._Templated], {
templateString: tmpl
});
dojo.declare("my.ThingerC", [dijit._Widget, dijit._Templated], {
templateString: tmpl,
postCreate: function() {
this.domNode.querySelectorAll(sel);
}
});
});
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
selectors |
| ready |
attachpoints |
| ready |
qsa only |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.