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 AngularJS: digest (v41) Revision 41 of this benchmark created by hayato on May 2, 2014 Preparation HTML <script src ="https://code.angularjs.org/1.0.1/angular-1.0.1.min.js" > </script >
<script > angularLegacy = angular; angular = undefined ;</script >
<script src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js" > </script >
<script > angularBase = angular; angular = undefined ;</script >
<script src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.7/angular.min.js" > </script >
<script > angularExp = angular; angular = undefined ;</script >
Setup function createScopeTree (angular ) {
var rootScope = angular.injector (['ng' ]).get ('$rootScope' );
for (var i=0 ; i < 100 ; i++) {
var child = rootScope.$new();
for (var j=0 ; j < 100 ; j++) {
child.a = {b :{c :1 }};
child.$watch('a.b.c' , function ( ) {});
}
}
return rootScope;
}
var baseScope = createScopeTree (angularBase);
var expScope = createScopeTree (angularExp);
var legScope = createScopeTree (angularLegacy);
Teardown
baseScope = null ;
expScope = null ;
legScope = null ;
Test runner Ready to run.
Run Quick Run Testing in Test Ops/sec Base baseScope.$digest();
ready
Experiment expScope.$digest();
ready
Legacy legScope.$digest();
ready
Revisions You can edit these tests or add more tests to this page by appending /edit to the URL.
Revision 2 : published by AngularJS: digest on September 5, 2012 Revision 4 : published by Misko Hevery on December 12, 2013 Revision 5 : published by Misko Hevery on December 12, 2013 Revision 6 : published by Misko Hevery on December 12, 2013 Revision 10 : published by Map Vs For on December 19, 2013 Revision 11 : published on December 19, 2013 Revision 12 : published on December 19, 2013 Revision 13 : published on December 19, 2013 Revision 15 : published on December 27, 2013 Revision 16 : published on December 30, 2013 Revision 17 : published by Marcin Operacz on January 2, 2014 Revision 18 : published on January 6, 2014 Revision 19 : published on January 8, 2014 Revision 20 : published on January 9, 2014 Revision 21 : published on January 9, 2014 Revision 22 : published on January 10, 2014 Revision 23 : published on January 10, 2014 Revision 26 : published on January 22, 2014 Revision 28 : published on February 5, 2014 Revision 33 : published by XavierBoubert on February 25, 2014 Revision 34 : published on February 26, 2014 Revision 35 : published on February 26, 2014 Revision 36 : published on February 26, 2014 Revision 37 : published on March 13, 2014 Revision 40 : published by kitallis on April 18, 2014 Revision 41 : published by hayato on May 2, 2014 Revision 42 : published on May 21, 2014 Revision 43 : published by Jay on June 13, 2014 Revision 44 : published on June 24, 2014 Revision 45 : published on July 1, 2014 Revision 46 : published on July 22, 2014 Revision 49 : published on October 2, 2014 Revision 50 : published by santiago on October 2, 2014 Revision 51 : published on October 3, 2014 Revision 53 : published on October 27, 2014 Revision 54 : published on November 18, 2014 Revision 55 : published on November 18, 2014 Revision 56 : published on November 21, 2014 Revision 58 : published on December 31, 2014 Revision 59 : published on January 2, 2015 Revision 60 : published on January 4, 2015 Revision 61 : published on February 9, 2015 Revision 62 : published on February 14, 2015 Revision 63 : published on March 11, 2015 Revision 64 : published on March 16, 2015 Revision 66 : published by Oleg on March 18, 2015