Go back to all articles

Gatling vs LoadRunner: Load Tests as Code or an Enterprise Suite

Comparison
16 min read
Denis Sautin

Denis Sautin

Author

Denis Sautin

Denis Sautin is an experienced Product Marketing Specialist at PFLB. He focuses on understanding customer needs to ensure PFLB’s offerings resonate with you. Denis closely collaborates with product, engineering, and sales teams to provide you with the best experience through content, our solutions, and your personal journey on our website.

Full Bio

Product Marketing Specialist

Reviewed by Boris Seleznev

boris author

Reviewed by

Boris Seleznev

Boris Seleznev is a seasoned performance engineer with over 10 years of experience in the field. Throughout his career, he has successfully delivered more than 200 load testing projects, both as an engineer and in managerial roles. Currently, Boris serves as the Professional Services Director at PFLB, where he leads a team of 150 skilled performance engineers.

Full Bio

At a glance

  • The short answer. Gatling is a load testing tool where a test is code: you write a simulation in Java, Kotlin, Scala, JavaScript or TypeScript, keep it in Git and run it from your build tool. LoadRunner Professional is a suite of desktop applications: VuGen records and edits scripts, Controller runs scenarios on load generators, and Analysis builds the graphs and reports. Pick Gatling when developers own the load tests and the tests run in CI/CD. Keep LoadRunner when your scripts hit SAP GUI, Citrix, terminal emulation or other protocols that Gatling does not list.
  • Who this is for. QA and performance leads who are choosing between the two tools, and teams with a LoadRunner suite who are deciding where their VuGen scripts go next. The choice decides who writes and maintains your load tests, which systems you can test at all, and whether you pay for load generator time or for Vusers.
  • How we checked. Facts about Gatling come from docs.gatling.io and gatling.io, facts about LoadRunner from the OpenText help center for version 26.1 to 26.3, all read on 22 November 2026, with links in the text. In those docs OpenText calls the product OpenText Professional Performance Engineering; we use the older name, LoadRunner Professional, because that is what most teams search for. We did not benchmark either tool, and where a source did not confirm something, we left it out.
  • Who wrote this. PFLB makes a cloud load testing platform and sells performance testing services. Since 2008, our 150+ performance engineers have tested systems for 300+ companies.

Gatling vs LoadRunner: Comparison Table

GatlingLoadRunner Professional
How you write a testA simulation in code with the Gatling SDK, edited in your IDE and stored in GitVuGen records a business process and generates a Vuser script that you then edit
Script languageJava, Kotlin or Scala on the JVM, or JavaScript and TypeScriptC by default; C#, Visual Basic .NET, Java or JavaScript for some protocols
RecordingThe Recorder works as an HTTP proxy or converts a HAR file; Gatling Studio adds a low-code recorderVuGen records on Windows; DevWeb scripts can also be generated from a HAR file
ProtocolsHTTP with WebSocket and SSE, GraphQL, gRPC, JDBC, JMS, Kafka and MQTT, plus third-party pluginsWeb, DevWeb, TruClient browser scripts, SAP GUI, Citrix ICA, RDP, terminal emulation (RTE), Oracle, .NET, Java, MQTT, Kafka, mail and more
Distributed runNot supported in Community Edition; Enterprise Edition runs several load generators, including private locations in your networkController distributes the Vusers of a scenario to load generator machines and collates the results
ReportsHTML report after each run; Enterprise Edition adds run summaries onlineAnalysis graphs plus Summary, SLA and Transaction Analysis reports, with HTML export
Pass/fail criteriaAssertions in the script; one failed assertion fails the simulationSLAs defined for the scenario and checked in the SLA report
CI/CDMaven, Gradle and sbt plugins or the JavaScript CLI; Enterprise plugins for Jenkins, GitHub Actions, GitLab, Azure DevOps, TeamCity and BambooJenkins plugin (Application Automation Tools) runs Controller scenarios that have SLAs
License modelCore under the Apache License 2.0; Enterprise Edition sold as plans, with test runs charged in credits by load generator timeA Community license installed with setup; commercial licenses sold as protocol bundles and Vuser-day licenses
When to useWeb, API and messaging tests written and reviewed by developersLegacy and packaged-application protocols, or an existing suite of VuGen scripts

Gatling treats a load test as part of the code base. LoadRunner keeps it inside its own set of tools, from recording to reports. The sections below show what each approach costs you.

How Gatling Works: Load Tests as Code

In Gatling, a test is a simulation: a class (or a function in JavaScript and TypeScript) that defines scenarios, the protocols they use and an injection profile, then registers them with a single setUp call. You can keep several populations in one simulation and move shared pieces such as headers or protocol settings into helper classes. A developer reads it like any other source file and reviews changes in a pull request.

Gatling runs on a Java Virtual Machine. The installation guide offers the JVM SDK for Java, Kotlin and Scala and a separate JavaScript SDK installed with npm. The docs recommend the Maven or Gradle plugin over the standalone bundle; the bundle is meant for machines behind a corporate firewall without access to Maven.

Gatling Installation and a First Run

The docs recommend starting from a demo project: download the project ZIP file, unzip it and open it in your IDE. The Java starter uses the Maven Wrapper, so you do not install Maven system-wide, and ./mvnw gatling:test runs the simulation from the console. If the project holds several simulations, the plugin asks which one to run. The HTML report then opens from the latest folder under target/gatling/. You need a 64-bit OpenJDK LTS version from 11 to 25 on macOS, Linux or Windows; the JavaScript SDK installs with npm instead.

Recording Gatling Test Scripts

You do not have to write the first version by hand. The Gatling Recorder sits between your browser and the server as an HTTP proxy, or converts a HAR file, and produces a basic simulation of the recorded navigation. For HTTPS it acts as a man-in-the-middle, so you install its CA certificate in the browser first.

Protocol support is narrower than LoadRunner's and aimed at modern services. The protocol reference lists HTTP (with WebSocket, server-sent events and HTTP polling), GraphQL, JDBC for relational databases, JMS, Kafka, MQTT and gRPC. Anything else depends on third-party plugins.

How LoadRunner Works: VuGen, Controller and Analysis

LoadRunner splits the job across three applications. You build scripts in VuGen, the Virtual User Generator. According to the VuGen overview, you record a user running a business process, VuGen captures only the traffic between the client and the server, and it then generates functions that replay that traffic as a Vuser script. Replay calls the server directly, without the client interface, which lets one machine run many Vusers. Recording works only on Windows; the scripts replay on Windows and Linux.

The script language is C by default. Some protocols record in C#, Visual Basic .NET, Java or JavaScript, and after recording you can add your own code and control flow. For web traffic there is also the DevWeb protocol, which works at the HTTP and WebSocket level, runs on Windows, Linux and macOS, and can build a script from a HAR file or from its own proxy recorder.

You run scripts in Controller. A scenario sets how many Vusers run, which scripts they execute, which machines generate the load and which monitors collect server metrics. You can build a manual scenario or a goal-oriented one, where you set a target such as a number of concurrent Vusers, hits per second or transactions per second and Controller builds the scenario. Transactions in the script mark what you measure, and rendezvous points make Vusers wait for each other to hit the server at the same moment.

After the run, Controller collates the results that each load generator stored locally into one results folder, and Analysis turns that result file into graphs and reports. The on-premises Analysis is a Windows application.

Protocol Coverage: Where LoadRunner Still Leads

Protocol support is the clearest reason to stay on LoadRunner. The VuGen protocol list includes SAP GUI and SAP Web, Citrix ICA, RDP, RTE terminal emulation, Oracle NCA and Oracle 2-tier, Siebel, Tuxedo, ODBC, .NET, Java, Windows Sockets, LDAP, FTP and the mail protocols, next to Web HTTP/HTML, Web Services, MQTT and Kafka. TruClient scripts record browser-based applications in a real browser, and an LLM protocol covers tests of large language model APIs.

None of the desktop and packaged-application protocols in that list appear in the Gatling protocol reference. If your load test has to log in through a Citrix session or drive SAP GUI transactions, Gatling has no built-in way to do it. If your traffic is HTTP, gRPC, Kafka, MQTT or JDBC, both tools cover it and the choice moves to scripting, scale and cost.

Running at Scale: Load Generators in Each Tool

LoadRunner spreads load across machines from the start. When you start a scenario, Controller sends each Vuser to a load generator, the machine that runs the script. The Controller guide says a scenario can hold tens, hundreds or thousands of Vusers spread over those machines. After the run, Controller gathers what each machine recorded into one folder.

Gatling separates scale by edition. The Gatling FAQ says that the Community Edition is not supported for distributed testing: multiple load generators and load from several geographic locations are Enterprise Edition features. Enterprise Edition can also run load generators in private locations: you install a control plane in your own AWS, Azure, GCP, Kubernetes or dedicated machines, and it polls Gatling for new runs and starts the generators there, with no inbound connection to your network.

Once you need several machines or traffic from several regions, compare LoadRunner with Gatling Enterprise Edition, because the open source edition stays on one machine.

Reports and Pass/Fail Criteria

Gatling writes an HTML report at the end of each run. It shows response time ranges, a statistics table with min, max, average, standard deviation and percentiles per request, active users over time, response time distribution and percentiles over time, and requests and responses per second. With the Maven plugin, the report lands in target/gatling/. The Enterprise Edition run page adds an online summary with the error ratio, the maximum number of concurrent virtual users and the 95th percentile response time.

Pass or fail in Gatling comes from assertions you write in the simulation, for example on response time or the count of failed requests, for all requests or for one group. Gatling evaluates them after the run, fails the simulation if one assertion fails, and can export them to a JUnit-compatible format.

LoadRunner Analysis offers several report types: a Summary report of the run, an SLA report that shows each service level agreement as succeeded or failed, a Transaction Analysis report for one transaction over a time window, and an HTML report with a page for each open graph. You can merge graphs and compare the results of several runs, and copy the raw data behind any graph into a spreadsheet.

CI/CD: Which One Fits a Pipeline

Gatling starts from the build. The Maven plugin runs simulations from the command line, so any CI server that runs Maven can run a load test as a build step, and Gradle and sbt plugins do the same. The same plugins package a project for Gatling Enterprise Edition, which has CI integrations for GitHub Actions, GitLab CI/CD, Jenkins, Azure DevOps, TeamCity and Bamboo, and a generic option for other systems.

LoadRunner connects to Jenkins through the Application Automation Tools plugin, which runs a Controller scenario as a build step and adds its outcome to Jenkins reports. The docs set two conditions: LoadRunner must be installed on each build node where the plugin runs, and only scenarios with SLAs can be integrated, because the SLA decides whether the build passes.

Both tools can gate a release. The difference is the agent you need: a JVM or Node.js for Gatling, a machine with LoadRunner installed for a Controller scenario.

Licensing Models Compared

The Gatling core uses the Apache License 2.0, and some components ship under separate Gatling licenses. Gatling Enterprise Edition is a commercial product sold in plans for individuals, teams and larger organizations. Its test runs consume credits by load generator time, including the time a simulation takes to start.

LoadRunner needs a valid license on the Controller machine to run Vusers. Setup installs a Community license that covers a small number of Vusers on most protocols, Gatling and JMeter included. Beyond it, OpenText sells license bundles that add Vusers for selected protocols, as permanent, time-limited or evaluation licenses, plus Vuser-day (VUFD) licenses that count the peak number of Vusers you run on a given day. A script that mixes protocols from two bundles needs licenses in both.

With Gatling Enterprise Edition you pay for how long load generators run. With LoadRunner you pay for how many Vusers you run and on which protocols. Ask both vendors for a quote against your own test calendar before you compare.

You Do Not Have to Choose: Gatling Scripts in LoadRunner Controller

LoadRunner can run Gatling tests. The Controller guide on Gatling tests says scenarios accept Gatling scripts as .scala files or .jar archives, next to scripts of other protocols in the same scenario. Controller reports each request and request group as a transaction, and you can override the number of Vusers and the ramp-up from Controller instead of the values in the script. The results appear in Controller and Analysis like those of any other Vuser.

A few conditions apply. Each load generator needs a supported JDK and the Gatling package that ships with LoadRunner, data files must sit in the same folder as the script, and OpenText recommends dedicated load generators because Gatling tests on the Controller's own machine may become unstable. Network Virtualization does not work with Gatling tests. The page lists only Scala and JAR scripts, so check your version's docs before you plan to run Java, Kotlin or JavaScript simulations this way.

LoadRunner Enterprise has a similar Gatling scripts page for its performance tests. There you upload a ZIP file with the .scala files and their dependencies in its root folder, each request shows up as a transaction, and the results appear in Analysis. The Controller guide also mentions that Controller runs Selenium, JUnit and NUnit tests. A team that has both tools can let developers write Gatling simulations and still report them through LoadRunner Analysis next to the SAP or Citrix scripts.

Gatling or LoadRunner: Choose by Scenario

  • Developers own the load tests and run them on every merge. Use Gatling. The simulation lives next to the application code, the build tool runs it and assertions fail the build.
  • Your system includes SAP GUI, Citrix, RDP or terminal sessions. Stay on LoadRunner, or on another tool that lists those protocols. Gatling does not cover them.
  • You have hundreds of VuGen scripts and the team that maintains them. Keep LoadRunner until you can estimate what the rewrite costs. Our LoadRunner alternatives guide covers what happens to VuGen scripts in each replacement.
  • You need a large distributed test of web or API traffic. Compare LoadRunner with Gatling Enterprise Edition or another cloud runner; the Community Edition alone runs on one machine.
  • You are choosing an open source tool for HTTP tests. Compare Gatling with JMeter first, as in JMeter vs Gatling, and see the wider list in Gatling alternatives.

Leaving LoadRunner: What Happens to VuGen Scripts

Neither tool reads the other's scripts as written. A VuGen script is C code by default, built from LoadRunner functions, and a Gatling simulation is code against the Gatling SDK, so a move means a conversion or a rewrite. The Gatling website advertises an AI tool that converts LoadRunner scripts; we have not tested it.

For web and API traffic, a common route is to record the journey again. Open the application in a browser, save the session as a HAR file, and generate a new test from it: the Gatling Recorder converts HAR files, LoadRunner DevWeb builds scripts from them, and PFLB Platform imports them. You then add correlation, test data and checks, which you would rewrite in any case. Protocols that Gatling does not support stay where they are until you find a tool that does.

Running the Same Tests on PFLB Platform

PFLB Platform does not run Gatling simulations or import VuGen scripts. It runs JMeter. A team leaving LoadRunner can re-record its web and API journeys as HAR files and import them, or rebuild the scripts as JMeter test plans and import the JMX files with their CSV data. Each imported script runs in a container on cloud load generators: you duplicate a container to raise the load, choose the load generator location for each one, watch the run in Grafana and start tests from Jenkins or GitLab CI. The platform rejects a plan that uses an unsupported plugin and turns off its listeners on import. The platform can generate an AI report for a run. Teams that write their tests in Gatling should stay on Gatling Enterprise Edition for distributed runs.

Move Your Web and API Load Tests to the Cloud
Import a JMX plan or a HAR recording, set the load profile, and run it from the platform's cloud load generators.

Gatling vs LoadRunner: FAQ

Is Gatling better than LoadRunner?

For HTTP, gRPC, Kafka or MQTT tests that developers write and run in CI/CD, Gatling fits better: tests are code, the build tool runs them, and the core is open source. For SAP GUI, Citrix, terminal emulation and other packaged-application protocols, LoadRunner covers what Gatling does not.

Can LoadRunner run Gatling scripts?

Yes. LoadRunner Controller accepts Gatling scripts as .scala files or .jar archives, runs them on load generators with a JDK installed, and reports them in Controller and Analysis.

Can Gatling import LoadRunner scripts?

Not as written. A VuGen script has to be converted or rewritten as a Gatling simulation. Gatling advertises an AI converter for LoadRunner scripts; check its output against your own scripts before you plan a migration around it.

Which languages do Gatling and LoadRunner use for scripts?

Gatling uses Java, Kotlin, Scala, JavaScript or TypeScript. VuGen generates C by default, with C#, Visual Basic .NET, Java or JavaScript for some protocols.

What is LoadRunner called now?

In the OpenText help center for version 26.x, LoadRunner Professional appears as OpenText Professional Performance Engineering, and LoadRunner Enterprise as OpenText Enterprise Performance Engineering. The scripting tool is still called VuGen and the run tool Controller.

Does Gatling support distributed load testing?

Only in Gatling Enterprise Edition. The Gatling FAQ says the Community Edition is not supported for distributed testing.

How is LoadRunner licensed?

By Vusers and protocols. A Community license comes with setup, and commercial licenses add Vusers for protocol bundles, permanently, for a limited term or by the day.

Choosing Between Gatling and LoadRunner

Start from your protocols. If your tests hit SAP GUI, Citrix or terminals, LoadRunner stays, and Gatling can run next to it inside Controller for the web and API parts. If your traffic is web, API and messaging and your developers own the tests, Gatling fits the pipeline you already have, and you buy Enterprise Edition when one machine stops being enough. Before you decide, rewrite one real script in the new tool and run it against the same environment.

If you would rather have engineers design and run the test, or plan the move off LoadRunner, tell us what you need to test.