Английская Википедия:Gatling (software)

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Infobox website

Gatling is a load- and performance-testing framework based on Scala, Akka and Netty. The first stable release was published on January 13, 2012. In 2015, Gatling's founder, Stéphane Landelle, created a company (named "Gatling Corp"), dedicated to the development of the open-source project. According to Gatling Corp's official blog, Gatling was downloaded more than 1,000,000 times (2021). In June 2016, Gatling officially presented Gatling FrontLine, Gatling's Enterprise Version with additional features.[1]

The software is designed to be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.

Gatling was mentioned twice in ThoughtWorks Technology Radar, in 2013 and 2014,[2] "as a tool worth trying",[2] with an emphasis on "the interesting premise of treating your performance tests as production code".[2]

The latest minor release is Gatling 3.9, published on December 12, 2022.[3]

Overview

Gatling Corp develops the open-source performance testing tool for web applications, Gatling, and its enterprise version, Gatling FrontLine. The Project's aims include:

  • High performance
  • Ready-to-present HTML reports
  • Developer-friendly DSLs for Java, Scala, and Kotlin

Terminology

  • Simulation: The simulation file includes the different scenarios of a test, its parametrization and the injection profiles. Technically speaking, a simulation is a Scala class.[4] Here is an example of a simulation:[5]
class BasicSimulation extends Simulation {

  val httpConf = http
    .baseURL("http://computer-database.gatling.io")
    .acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
    .doNotTrackHeader("1")
    .acceptLanguageHeader("en-US,en;q=0.5")
    .acceptEncodingHeader("gzip, deflate")
    .userAgentHeader("Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0")

  val scn = scenario("BasicSimulation")
    .exec(http("request_1")
    .get("/"))
    .pause(5)

  setUp(
    scn.inject(atOnceUsers(1))
  ).protocols(httpConf)
}
  • Scenario: A scenario consists of a series of requests. Each scenario within a simulation can have its own injection profile.[6] Here is an example of a scenario:[5]
  val scn = scenario("BasicSimulation")
    .exec(http("request_1")
    .get("/"))
    .pause(5)

  setUp(
    scn.inject(atOnceUsers(1))
  ).protocols(httpConf)
  • Group: Groups can be used as a subdivision of a scenario. It is also a series of requests, that has a functional purpose (for instance, the login process).
  • Request: Gatling is able to simulate complex users' behaviors. For this purpose, it generates the appropriate requests in the system under test. Here is an example of a request in Gatling:[5]
exec(http("request_1")
  .get("/"))
  .pause(5)
  • Injection profile: An injection profile is the number of virtual users injected during the test in the system under test and how they are injected. Here is an example of an injection profile:[5]
setUp(
  scn.inject(atOnceUsers(1))
).protocols(httpConf)

Architecture

Gatling implemented a fully new architecture for a performance testing tool, in order to be more resource efficient.[7] It makes it possible to simulate a high number of requests per second with a single machine.[8]

Components

Recorder

Gatling comes up with a recorder to bootstrap a simulation.

Domain-specific language

Gatling is provided with a simple[9] and lightweight[2] Domain-specific language, in which simulations and scenarios are coded. This allows users to add custom behavior through many hooks.[10] This makes simulation scripts readable and easy to maintain.[11] This is an example of how Gatling's Domain-specific language looks like (see also Шаблон:Section link):

val scn = scenario("BasicSimulation")
  .exec(http("request_1")
  .get("/"))
  .pause(5)

HTML reports

At the end of each test, Gatling generates an HTML report. Reports include:[12]

  • Active users over time
  • Response time distribution
  • Response time percentiles over time
  • Requests per second over time
  • Responses per second over time

Protocols support and plugins

It officially supports the following protocols:

Gatling documentation states that it is protocol agnostic, which makes it possible to implement other protocols' support.[13] Here is a non-exhaustive list of community protocols support:

Plugins

Gatling comes out with official and community plugins. It integrates with:

Here is a non-exhaustive list of community plugins:

Continuous integration

Automation with Gatling is related to its simulations' maintainability.[14] The integration with other developer tools, especially in the DevOps lifecycle, makes it possible to industrialize performance tests, that is to say to fully automate the execution of performance testing campaigns in the software development process.

Major and minor releases

Version[15] Release date
3.10.3 21 Dec 2023
3.9.5 10 May 2023
3.0.0 23 October 2018
2.3.0 30 August 2017
2.2.0 15 April 2016
2.1.0 15 December 2014
2.0.0 6 October 2014
1.5.0 6 May 2013
1.4.0 20 December 2012
1.3.0 19 September 2012
1.2.0 31 May 2012
1.1.0 26 March 2012
1.0.0 13 January 2012

Licensing

Gatling is published under Apache License 2.0,[16] a permissive free software license written by the Apache Software Foundation (ASF).[17]

The source code is accessible on GitHub.

Gatling Enterprise

Gatling Enterprise is the commercial version of Gatling. Gatling Enterprise is proprietary software. It is distributed by Gatling Corp.

Company

Gatling started as an open-source project in 2012. 3 years later, in 2015, its founder, Stéphane Landelle, created a dedicated company named "Gatling Corp".

Origins of the open-source project

Gatling was designed by Stéphane Landelle when he was the Chief Technology Officer (CTO) of a French IT consulting firm, eBusiness Information.

Creation of a dedicated company

In 2015, a dedicated company was created. It provides Gatling's users with professional services and, since 2016, with an Enterprise Version of Gatling, Gatling FrontLine.

The company is based in Bagneux, France, near Paris.

Gatling Corp is a member of Systematic Paris-Region, an Île-de-France business cluster created in 2005,[18] devoted to complex systems and ICT.[19] Systematic Paris-Region gathers large groups, SMEs, universities and research labs to promote digital innovation. Gatling is a member of Systematic's Open Source Working Group and was elected member of Systematic's board of directors, as a representative of SMEs, in November 2016.

The company took part in some events, like the Paris Open Source Summit (POSS, 2015, 2016 and 2017 editions), Liferay's 2016 Symposium, Java User Group (JUG)'s meetings, the Paris Gatling User Group and the New York Gatling User Group.

See also

References

Шаблон:Reflist