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 = "{{#repo}}<b>{{name}}</b>{{/repo}}";
var templateB = "<b>{{name}}</b>";
var viewA = {
"repo": [
{ "name": "morgan0" },
{ "name": "morgan1" },
{ "name": "morgan2" },
{ "name": "morgan3" },
{ "name": "morgan4" },
{ "name": "morgan5" },
{ "name": "morgan6" },
{ "name": "morgan7" },
{ "name": "morgan8" },
{ "name": "morgan9" },
{ "name": "morgan10" },
{ "name": "morgan11" },
{ "name": "morgan12" },
{ "name": "morgan13" },
{ "name": "morgan14" },
{ "name": "morgan15" },
{ "name": "morgan16" },
{ "name": "morgan17" },
{ "name": "morgan18" },
{ "name": "morgan19" },
]
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
mustache loop |
| ready |
loop mustache |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.