performance monitoring measurement angualrjs single page apps with phantomas

28
Phantomas Web Performance Monitoring and Angular.js

Upload: david-amend

Post on 16-Apr-2017

404 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Performance monitoring measurement angualrjs single page apps with phantomas

Phantomas

Web Performance Monitoring

and Angular.js

Page 2: Performance monitoring measurement angualrjs single page apps with phantomas

Performance

Do not investigate

time in fixing

performance issues,

if none actually

exists!*

* if costs more effort

Page 3: Performance monitoring measurement angualrjs single page apps with phantomas

Frontend-Performance Monitoring

Page 4: Performance monitoring measurement angualrjs single page apps with phantomas

Angular performance monitoring

http://kentcdodds.com/ng-stats/

Page 5: Performance monitoring measurement angualrjs single page apps with phantomas

Know about Performance passively !

Page 6: Performance monitoring measurement angualrjs single page apps with phantomas

Ready for Continous Integration

Page 7: Performance monitoring measurement angualrjs single page apps with phantomas

History Comparison

Page 8: Performance monitoring measurement angualrjs single page apps with phantomas

Knownledge About Every Step !

Page 9: Performance monitoring measurement angualrjs single page apps with phantomas
Page 10: Performance monitoring measurement angualrjs single page apps with phantomas

WTF Phantomas?

Page 11: Performance monitoring measurement angualrjs single page apps with phantomas

JavaScript VM

Node

Phantom.js

Phantomas

Grunt-Phantomas

Phantomas-Grunt

JenkinsNavigation Timing API

D3 ChartsHTML-Page

tap

statsd

csv

json

Page 12: Performance monitoring measurement angualrjs single page apps with phantomas

Focus Frontend Only

→ No latency

Page 13: Performance monitoring measurement angualrjs single page apps with phantomas

Easy Setup

phantomas: {

gruntSite : {

options : {

indexPath : './phantomas/',

options : {},

url : 'http://gruntjs.com/',

buildUi : true

}

}

}

Page 14: Performance monitoring measurement angualrjs single page apps with phantomas

Phantomas: Metrics

Requests monitor

Assets types

DOM complexity

Event listeners

Window performance

jQuery/Angular bound events, analyse-css

...

Page 15: Performance monitoring measurement angualrjs single page apps with phantomas

Grunt-Devperf: HTML-Page

Page 16: Performance monitoring measurement angualrjs single page apps with phantomas

Scriptable Metrics

if (typeof window.__phantomas !== 'undefined') {

(function(phantomas) {

phantomas.setMarkerMetric('actionFooBar');

})(window.__phantomas);

}

https://github.com/bahmutov/code-snippets#angular-performance

Page 17: Performance monitoring measurement angualrjs single page apps with phantomas

DEMO

phantomas http://localhost/ > perf.log

Page 18: Performance monitoring measurement angualrjs single page apps with phantomas

Know about Performance passively !

Page 19: Performance monitoring measurement angualrjs single page apps with phantomas

Questions ?

Page 20: Performance monitoring measurement angualrjs single page apps with phantomas
Page 21: Performance monitoring measurement angualrjs single page apps with phantomas

Sources

https://github.com/stefanjudis/grunt-phantomas

http://www.sunnytechblog.com/wp-content/uploads/computer-virus-Computer-slowing-down.jpg

http://thumbs.dreamstime.com/x/unstable-equilibrium-21968412.jpg

http://blog.trnd.com/wordpress/wp-content/uploads/2012/09/Staples-Easy-Button.jpg

http://www.netdirector.biz/wp-content/uploads/2014/04/automate-2.gif

Page 22: Performance monitoring measurement angualrjs single page apps with phantomas

PerformanceReports

JSONCSV

TAP

StatsDElasticSearch

Export Formats

Page 23: Performance monitoring measurement angualrjs single page apps with phantomas

D3 Tables

Page 24: Performance monitoring measurement angualrjs single page apps with phantomas
Page 25: Performance monitoring measurement angualrjs single page apps with phantomas

Additional Information

Page 26: Performance monitoring measurement angualrjs single page apps with phantomas

Additional Information

Page 27: Performance monitoring measurement angualrjs single page apps with phantomas

Filmstrips

Page 28: Performance monitoring measurement angualrjs single page apps with phantomas

Runs Everywhere

JavaScriptVM Headless-Phantom

=