Skip to content

Instantly share code, notes, and snippets.

@jurepolutnik
Created May 8, 2016 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurepolutnik/1eb9b2c0e1a50be0852adcb22478ff0a to your computer and use it in GitHub Desktop.
Save jurepolutnik/1eb9b2c0e1a50be0852adcb22478ff0a to your computer and use it in GitHub Desktop.
function timeDigest() {
angular.element(document.querySelector('[ng-app]'))
.injector().invoke(function($rootScope) {
var a = performance.now();
$rootScope.$apply();
console.log(performance.now()-a);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment