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
Polymer project has setup a project arround a polyfill waiting for a native implementation of MDV... This project is really young, but deserve to be tested.
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<!-- For Polymer/MDV -->
<script src="//rawgithub.com/Polymer/observe-js/master/src/observe.js"></script>
<script src="//rawgithub.com/Polymer/TemplateBinding/master/src/TemplateBinding.js"></script>
<template bind="{{ data }}" id="test">
<ul>
<template repeat="{{ salutations }}">
<li class="{{classType}}">{{ what }}: <input type="text" value="{{ who }}"></li>
</template>
</ul>
</template>
<script>
console.log(-1);
var mdvTemplate = document.getElementById('test');
mdvTemplate.model = {};
var templateHb = "<ul>{{#salutations}}<li class=\"{{classType}}\">{{what}}: <input type=\"text\" value=\"{{who}}\"></li>{{/salutations}}</ul>";
var compiledHandlebars = Handlebars.compile(templateHb);
console.log(0);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Polymer |
| ready |
Handlebars.js (uncompiled) |
| ready |
Handlebars.js (compiled) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.