Mateusz Gruszczynski - Performance tests in Gatling (Quality Questions Conference)
Continuous performance management with Gatling
-
Upload
radoslaw-smilgin -
Category
Education
-
view
444 -
download
0
Transcript of Continuous performance management with Gatling
![Page 1: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/1.jpg)
CONTINUOUS PERFORMANCE MANAGEMENT WITH GATLING
Tomasz Bonior
![Page 2: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/2.jpg)
![Page 4: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/4.jpg)
How to understand Continuous Performance Management
![Page 5: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/5.jpg)
It’s not trendy It’s not jazzy
It’s not fanky It’s not popular
It’s not new
It’s not easy
but maybe worth to try...
![Page 6: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/6.jpg)
Investment- learn tools- write tests- setup CI with performance tests- monitor reports- maintain tests
![Page 7: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/7.jpg)
Return
-data
![Page 8: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/8.jpg)
Examples1) Service stopped working 2) Requirements changes3) Architecture changes
![Page 9: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/9.jpg)
Return
- continuous performance monitoring- chance for decisions- leaks identified with lowest cost
![Page 10: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/10.jpg)
This is how we did itInvestment for the Performance Tests
- learn tools- write tests- setup CI with performance tests- monitor reports- maintain tests
Investment for the Functional Tests
- learn tools- write tests- setup CI with functional tests- monitor reports- maintain tests
![Page 11: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/11.jpg)
Gatling- open source load testing framework based on Scala, Akka and Netty- friendly DSL- ability to record tests- integrated with Maven and SBT- robust reports- high performance
and easy to start, quite new, become popular, trendy, jazzy, funky...
![Page 12: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/12.jpg)
Gatling DSLexec(http("Home") .get("/")) .pause(7) .exec(http("Search") .get("/computers?f=macbook")) .pause(2) .exec(http("Select") .get("/computers/6")) .pause(3)
users.inject(rampUsers(10) over (10 seconds)
![Page 13: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/13.jpg)
![Page 14: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/14.jpg)
Functional tests in Gatling -> Performance tests “for free”
the same tests with different performance strategy
![Page 15: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/15.jpg)
Functional tests in Gatling -> Performance tests “for free”
\/
generate request/response log
\/
push to GitBook -> API documentation up to date
![Page 16: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/16.jpg)
![Page 17: Continuous performance management with Gatling](https://reader031.fdocuments.us/reader031/viewer/2022021919/58832aa71a28abe2758b744b/html5/thumbnails/17.jpg)