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-3.4.0rc.js"></script>
<!-- This is a *view* - HTML markup that defines the appearance of your UI -->
<div id="wrapper">
<p>First name: <input data-bind="value: firstName" /></p>
<p>Last name: <input data-bind="value: lastName" /></p>
<p>Full name: <strong data-bind="text: fullName"></strong></p>
</div>
// This is a simple *viewmodel* - JavaScript that defines the data and behavior of your UI
var wrapper = document.getElementById('wrapper');
function AppViewModel() {
this.firstName = ko.observable("Bert");
this.lastName = ko.observable("Bertington");
this.fullName = ko.computed(function() {
return this.firstName() + " " + this.lastName();
}, this);
}
var app = new AppViewModel();
// Activates knockout.js
ko.applyBindings(app, wrapper);
var wrapper = document.getElementById('wrapper');
ko.cleanNode(wrapper);
Ready to run.
Test | Ops/sec | |
---|---|---|
Normal with subs |
| ready |
peek |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.