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
Designed to test binding to rendering performance of these frontend frameworks.
Backbone.js was removed due to implementation possibilities
Using more recent version of ExtJS with putative grid performance improvements.
<!-- JQURY -->
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<!-- ANGULAR -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js" ng:autobind></script>
<script>
var Ctrl=function($scope){
$scope.data=[];
}
</script>
<div ng:app>
<ul ng-controller="Ctrl" id="angList" >
<li ng-repeat="item in data">{{item}}</li>
</ul>
<script>
var SetANG= function(data){
$('#angList').scope().data=data;
$('#angList').scope().$apply(function(){});
};
</script>
<!-- ANGULAR Update -->
<script>
var CtrlUpdate=function($scope){
$scope.data=[];
}
</script>
<ul ng-controller="CtrlUpdate" id="angListUpdate" >
<li ng-repeat="item in data">{{item}}</li>
</ul></div>
</div>
<script>
var SetANGUpdate= function(data){
$('#angListUpdate').scope().data=data;
$('#angListUpdate').scope().$apply(function(){});
};
</script>
<script>
var ANG50ID=[];
for (var i=0; i<50;i++){
ANG50ID.push('ITEM');
};
var ANG100ID=[];
for (var i=0; i<100;i++){
ANG100ID.push('ITEM');
};
var ANG100ID2=[];
for (var i=0; i<100;i++){
ANG100ID2.push('ITEM2');
};<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
var ANG1000ID=[];
for (var i=0; i<1000;i++){
ANG1000ID.push('ITEM');
};
</script>
SetANG([]);
SetANGUpdate(ANG100ID);
Ready to run.
Test | Ops/sec | |
---|---|---|
Angular 0-50 Items |
| ready |
Angular 0-100 Items |
| ready |
Angular 0-1000 Items |
| ready |
Angular Update 100 of 100 Items (new data) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.