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="//yui.yahooapis.com/3.3.0/build/yui/yui.js"></script>
<script>
Y = YUI({
modules: {
'gallery-mustache': {
fullpath: 'https://github.com/derek/yui3-gallery/raw/master/build/gallery-mustache/gallery-mustache.js'
}
}
}).use('gallery-mustache', 'substitute');
var templateA = "Hello {{world}}, Hello {{world}}, Hello {{world}}";
var viewA = {
world: "World"
}
var templateB = "{{title}} spends {{calc}}";
var viewB = {
title: "Joe",
calc: function() {
return 2 + 4;
}
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
gallery-mustache - property |
| ready |
Y.substitute - property |
| ready |
Y.mustache - method |
| ready |
Y.substitute - method |
| ready |
Y.Lang.sub - property |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.