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://knockoutjs.com/downloads/knockout-2.2.1.debug.js">
</script>
<script src="https://github.com/jquery/jquery-tmpl/raw/master/jquery.tmpl.js">
</script>
<ul data-bind="template: { name: 'itemTmpl', foreach: items }">
</ul>
<script id="itemTmpl" type="text/html">
<li data-bind = "text: name"> </li>
</script>
<script>
function Item(id, name, type) {
return {
id: ko.observable(id),
name: ko.observable(name),
type: ko.observable(type)
}
}
var viewModel = {
name: ko.observable("nameTest"),
person: ko.observable({
firstName: "Bob"
}),
items: ko.observableArray([
new Item(1, "one", "a"), new Item(2, "two", "b"), new Item(3, "three", "a")]),
itemFlag: ko.observable(true)
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
KO native templating |
| ready |
jquery templating |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.