Anzeige

Grunt js for the Enterprise Vol.1: Frontend Performance with Phantomas

Web Solution Architect
15. May 2014
Anzeige

Más contenido relacionado

Anzeige
Anzeige

Grunt js for the Enterprise Vol.1: Frontend Performance with Phantomas

  1. Grunt.js for the Enterprise Vol. 1 Phantomas: Performance Monitoring
  2. DavidAmend ● Java Web-Developer, Frontend Architecture ● Backbone, Ember, Angular, Grunt.js Interests: JavaScript, TypeScript, Triathlon-Sports About David.Amend@it-amend.de
  3. Grunt.js Build tool like: Rake, ant, maven, groovy, yeoman, … Runs as npm Easy JSON-Syntax Supports in Continous Integration
  4. Frontend-Performance Monitoring
  5. WTF Phantomas?
  6. Ready for Continous Integration
  7. History Comparison
  8. Knownledge About Every Step !
  9. JavaScript VM Node Phantom.js Phantomas Grunt-Phantomas Phantomas-Grunt Navigation Timing API D3 ChartsHTML-Page
  10. Focus Frontend Only → No latency
  11. Performance Reports JSON CSV TAP StatsDElasticSearch Export Formats
  12. Runs Everywhere JavaScriptVM Headless-Phantom =
  13. Easy Setup phantomas: { gruntSite : { options : { indexPath : './phantomas/', options : {}, url : 'http://gruntjs.com/', buildUi : true } } }
  14. Phantomas: Metrics ● Requests monitor ● Assets types ● DOM complexity ● Event listeners ● Window performance ● jQuery/Angular bound events, analyse-css ● ...
  15. Scriptable Metrics if (typeof window.__phantomas !== 'undefined') { (function(phantomas) { phantomas.setMarkerMetric('actionFooBar'); })(window.__phantomas); }
  16. Custom Metrics / Assertions Some Parameters: --wait-for-selector=[CSS selector] --post-load-delay=[seconds] --proxy=[host:port] --phone viewport --runs 5 Phantomas-Juve: Simple Node Assertions Grunt-devperf: Overview & Warnings
  17. Grunt-Devperf: HTML-Page
  18. D3 Tables
  19. Additional Information
  20. Additional Information
  21. Filmstrips
  22. Summary ● One and only tool available ● Navigation API not always trustable?! ● Some buggy Charts ● Usage of Navigation API Specification ● E2E-Testing pluggable ● Easy to setup ● Wishlist is high
  23. Questions ?
  24. 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
Anzeige