blast your app with gatling! by stephane landelle
TRANSCRIPT
![Page 1: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/1.jpg)
Load testing made easy
Stéphane Landelle @ eBusiness Information @slandelle
![Page 2: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/2.jpg)
Load Testing"Gatling"Demo
![Page 3: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/3.jpg)
Load Testing"Gatling"Demo
![Page 4: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/4.jpg)
Load Testing"Gatling"Demo
![Page 5: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/5.jpg)
Load testing?
About performance About server side In “real” conditions
![Page 6: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/6.jpg)
Performance What for?"
![Page 7: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/7.jpg)
It’s all ‘bout the money!"Conversion rates"Platform costs
Performance What for?"
(from business POV)
![Page 8: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/8.jpg)
""Results/page : 10 => 30
è +500 ms "è -20% pages seen
![Page 9: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/9.jpg)
è -1 % sales"è Estimated loss: $160M/y
+100 ms
![Page 10: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/10.jpg)
Performance"What for?"
(from dev POV) Fun!"
(happens to be useful too)"Anticipate"Reproduce"
Train
![Page 11: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/11.jpg)
How?"""
![Page 12: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/12.jpg)
How?""
Define goals"
èRequirements
![Page 13: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/13.jpg)
How?""
Analyze"
èData"èMonitor
![Page 14: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/14.jpg)
How?""
Simulate"
èBehaviors"èInjector
![Page 15: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/15.jpg)
How?""
Iterate!!!"
![Page 16: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/16.jpg)
![Page 17: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/17.jpg)
Jmeter, The Grinder, LoadUI, Tsung, Locust, Load Runner, Rational, NeoLoad…
![Page 18: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/18.jpg)
Issue #1
High Performance
![Page 19: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/19.jpg)
1 user = "1 thread
![Page 20: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/20.jpg)
50 threads on a JVM
![Page 21: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/21.jpg)
With 2000 threads
![Page 22: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/22.jpg)
![Page 23: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/23.jpg)
Blocking I/O
![Page 24: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/24.jpg)
Threads ?"Waiting…
![Page 25: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/25.jpg)
… and sleeping
![Page 26: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/26.jpg)
![Page 27: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/27.jpg)
JMeter 2.8 perf test, expecting 300 tr/sec
Can you trust your results ?
![Page 28: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/28.jpg)
JMeter reference test with Gatling, expecting 300 tr/sec
![Page 29: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/29.jpg)
Usability Issue #2
![Page 30: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/30.jpg)
Listen, it's not that complicated...
Graphical User Interface
![Page 31: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/31.jpg)
Maintainability Issue #3
![Page 32: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/32.jpg)
What is this change about ?
![Page 33: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/33.jpg)
Gatling can change all that !
![Page 34: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/34.jpg)
Synchronous""
1user=1thread""
Blocking I/O
- Asynchronous - Actor model - Non blocking I/O
![Page 35: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/35.jpg)
Actors
![Page 36: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/36.jpg)
NIO
![Page 37: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/37.jpg)
Reach new limits
![Page 38: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/38.jpg)
From the Play2 Computer-Database sample. (cf: https://github.com/gatling/computer-database)
![Page 39: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/39.jpg)
Scenario "Scala code"DSL
"= =
![Page 40: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/40.jpg)
Use the rich DSL … Checks
regex / css / xpath / jsonPath find / findAll / count is / in / not / whatever
Structures doIf / repeat / during / asLongAs randomSwitch / roundRobinSwitch
Error handling tryMax / exitBlockOnFail
Feeders csv / tsv / jdbc
![Page 41: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/41.jpg)
… or write your own "Scala code…
![Page 42: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/42.jpg)
… or use the Recorder
![Page 43: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/43.jpg)
• Maven Plugin • Maven archetype (run in IDE) • Jenkins plugin • Graphite live reporting
![Page 44: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/44.jpg)
![Page 45: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/45.jpg)
Coming soon…
• Websockets, JDBC… • Clustering
![Page 46: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/46.jpg)
Demo
![Page 47: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/47.jpg)
![Page 48: Blast your app with Gatling! by Stephane Landelle](https://reader033.vdocument.in/reader033/viewer/2022052821/554a16feb4c9058c5d8b4fc0/html5/thumbnails/48.jpg)
http://gatling-tool.orghttp://github.com/excilys/gatling@GatlingTool