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="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdn.kendostatic.com/2011.2.804/js/kendo.all.min.js"></script>
<script src="http://github.com/downloads/SteveSanderson/knockout/knockout-2.1.0.js"></script>
<script type="text/x-kendo-template" id="kendoUIextTemplate">
<div>
<h1 class='header'><#= data.header #></h1>
<h2 class='header2'><#= data.header2 #></h2>
<h3 class='header3'><#= data.header3 #></h3>
<h4 class='header4'><#= data.header4 #></h4>
<h5 class='header5'><#= data.header5 #></h5>
<h6 class='header6'><#= data.header6 #></h6>
</div>
</script>
<script>
window.sharedVariables = {
header: "Header",
header2: "Header2",
header3: "Header3",
header4: "Header4",
header5: "Header5",
header6: "Header6",
};
window.kendoUIAlt2 = function kendoFunction(model) {
var inlineTemplate = kendo.template($("#kendoUIextTemplate").html(), {useWithBlock:false});
$("#kendo-div").html(inlineTemplate(model));
};
window.knockoutTemplate = function knockoutFunction(model) {
ko.applyBindings(model, document.getElementById("knockout-div"));
};
</script>
<b>Kendo output:</b><br />
<div id='kendo-div'></div>
<b>Knockout output:</b><br />
<div id='knockout-div'>
<h1 class='header' data-bind='text: header'></h1>
<h2 class='header2' data-bind='text: header2'></h2>
<h3 class='header3' data-bind='text: header3'></h3>
<h4 class='header4' data-bind='text: header4'></h4>
<h5 class='header5' data-bind='text: header5'></h5>
<h6 class='header6' data-bind='text: header6'></h6>
</div>
<script type='text/javascript'>
kendoUIAlt2(sharedVariables);
knockoutTemplate(sharedVariables);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Knockout.js Template |
| ready |
Kendo UI Templates (External Temp Def - No "with" block)) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.