continuous performance management with gatling

17
CONTINUOUS PERFORMANCE MANAGEMENT WITH GATLING Tomasz Bonior

Upload: radoslaw-smilgin

Post on 21-Jan-2017

448 views

Category:

Education


0 download

TRANSCRIPT

Page 2: Continuous performance management with Gatling
Page 4: Continuous performance management with Gatling

How to understand Continuous Performance Management

Page 5: Continuous performance management with Gatling

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

Investment- learn tools- write tests- setup CI with performance tests- monitor reports- maintain tests

Page 7: Continuous performance management with Gatling

Return

-data

Page 8: Continuous performance management with Gatling

Examples1) Service stopped working 2) Requirements changes3) Architecture changes

Page 9: Continuous performance management with Gatling

Return

- continuous performance monitoring- chance for decisions- leaks identified with lowest cost

Page 10: Continuous performance management with Gatling

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

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

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
Page 14: Continuous performance management with Gatling

Functional tests in Gatling -> Performance tests “for free”

the same tests with different performance strategy

Page 15: Continuous performance management with Gatling

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
Page 17: Continuous performance management with Gatling