Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Performance perpétuelle (Devopsdays Paris 2013)

1,632 views

Published on

Why and how to do performance testing inside your continuous delivery pipeline

Published in: Technology
  • Be the first to comment

Performance perpétuelle (Devopsdays Paris 2013)

  1. 1. 1© OCTO 2012© OCTO 2012Performance perpétuelleMesures et améliorations continues desperformancesMikaël RobertResponsable R&D Software Factory 2.0OCTO TechnologyHenri TremblayResponsable R&D PerformanceOCTO Technology
  2. 2. 2© OCTO 2012Premature optimization isthe root of all evil - DonaldKnuth
  3. 3. 3© OCTO 2012Il voulait dire ça:// Do not use the for(Object o : list)// because I think it is probably// slower than doing this… Probably…for(int i = 0; i < list.size(); i++) {Object o = list.get(i);…}Stop guessing dam it!!!
  4. 4. 4© OCTO 2012CodeMesureOptimiseLà où c’estimportant
  5. 5. 5© OCTO 2012PRODArchiDevPerf
  6. 6. 6© OCTO 2012PRODArchiDevPerf
  7. 7. 7© OCTO 2012ArchiDevPerfPRODDélai
  8. 8. 8© OCTO 2012PRODArchiDevTests de charge encontinue
  9. 9. 9© OCTO 2012
  10. 10. 10© OCTO 2012
  11. 11. 11© OCTO 2012include_recipe "tomcat"include_recipe "nginx"directory node.myapp.home doowner node.tomcat.userendtomcat_instance "myapp:tomcat" dowar_url node.myapp.urlwar_location node.myapp.locationend tomcat_myapp_http_port =tomcat_config("myapp:tomcat")[:connectors][:http][:port]nginx_add_default_location "myapp" docontent <<-EOFlocation #{node.myapp.location} {proxy_pass http://tomcat_myapp_upstream;break;}EOFupstream <<-EOFupstream tomcat_myapp_upstream {server 127.0.0.1:#{tomcat_myapp_http_port} fail_timeout=0;}EOFend
  12. 12. 12© OCTO 2012<plugin><groupId>com.excilys.ebi.gatling</groupId><artifactId>gatling-maven-plugin</artifactId><version>1.4.6</version></plugin>
  13. 13. 13© OCTO 2012VM PerfVM UDD
  14. 14. 14© OCTO 2012assertThat(details("account").responseTime.mean.lessThan(1000))
  15. 15. 15© OCTO 2012Simulation finished.account mean response time is less than 1000 : falseSimulation failed.Generating reports...Reports generated in 0s.[INFO] ----------------------------------------[INFO] BUILD FAILURE[INFO] ----------------------------------------[INFO] Total time: 32.411s[INFO] Finished at: Mon Apr 15 00:23:07 CEST 2013[INFO] Final Memory: 9M/120M[INFO] ----------------------------------------
  16. 16. 16© OCTO 2012
  17. 17. 17© OCTO 2012Après, vous faites commevous voulez.
  18. 18. 18© OCTO 2012Mais nous on préfère les pinacolada.Recette:2oz amber rhum4oz pinapple juiceDash of coco syrupBlend with crush ice
  19. 19. 19© OCTO 2012
  20. 20. 20© OCTO 2012Questions ?

×