Gatling - JUGL, 2012-09-13

  • 701 views
Uploaded on

 

More in: Technology , Design
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
701
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
19
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. How to stress test your application with Gatling ? Lausanne, September 13th 2012
  • 2. Why a new tool ?
  • 3. Issue n°1:High performance http://www.shopfbparts.com/catalog/nal-19201331_w.jpg
  • 4. 1 user = 1 thread
  • 5. With 50 threads on a JVM http://www.ausmotive.com/F1/2010/British-GP-05.jpg
  • 6. With 2000 threads on a JVM
  • 7. Blocking IO
  • 8. Thats what your threads will do most ofthe time, waiting ... http://www.flickr.com/photos/carlotancredi/3447589391
  • 9. ... and sleepinghttp://www.flickr.com/photos/maciejdakowicz/4770794503
  • 10. Issue n°2:Usability
  • 11. Graphical Interface Listen, its actually not complicated ... http://www.spacebio.uni-bonn.de/ahp/Parabel/Par_Images/240304-Cockpit_BIG.jpg
  • 12. Issue n°3:Maintenance
  • 13. What was this change about ?
  • 14. Listen to us, Gatling can change all that !http://static.lexpress.fr/medias/15/mai-68_124.jpg, copyright by AFP
  • 15. Say hello to my little friend ...
  • 16. Be asynchronous,embrace the actors model
  • 17. Dont use blocking IO> Netty> Async-Http-Client
  • 18. Scenario = Code = DSLhttp://gringocentralsanramon.blogspot.ch/2012/02/getting-published-writing-seminar-wed.html
  • 19. version 1.3.0Expected by the end of September 2012All examples will be based on this version
  • 20. Easy
  • 21. Démo !http://frizzlesworld.files.wordpress.com/2011/02/computer-cat.jpg
  • 22. Feeling lazy? Try the recorder.
  • 23. Démo !http://frizzlesworld.files.wordpress.com/2011/02/computer-cat.jpg
  • 24. Powerful : write your own Scala code
  • 25. But, many used case covered out-of-the-box by the DSL● .regex() / .css() / .xpath() / jsonPath()● .find() / .findAll() / .count()● .is() / .in() / .not / .whatever● .doIf() / .repeat() / .during() / . asLongAs()● .tryMax() / .exitBlockOnFail()● .randomSwitch() / .roundRobinSwitch()● .feeder() : csv() / tsv() / jdbc()
  • 26. Polling
  • 27. Markov chains(Cycles are not supported so far...)
  • 28. See also : .roundRobinSwitch()
  • 29. Démo !http://frizzlesworld.files.wordpress.com/2011/02/computer-cat.jpg
  • 30. Coming soon :> Live reporting in Graphite> Jenkins reports> Clustering
  • 31. Fact sheet● First commit in june 2011● Created by S. Landelle and R. Sertelon● About 20k LOCs● 19 persons have contributed to the project● 2000 downloads since the beginning● 500 downloads of Gatling 1.2.5
  • 32. http://gatling-tool.orghttp://github.com/excilys/gatlinghttp://twitter.com/GatlingToolhttp://github.com/nirehttp://twitter.com/nremond