A comprehensive comparison of Loadrunner and JMeter, Locust three performance testing tools

With the development of software technology, software applications are becoming more and more common. Not only the applications of major Internet companies need to perform performance testing, but even some small and medium-sized Internet applications increasingly need to perform performance testing on software projects. Therefore, this article will introduce and explain the three performance testing tools of Loadrunner, JMeter and Locust from the following aspects, and explain the differences and choices between them.

From a developer and cost perspective

1. Loadrunner is a large-scale enterprise-level performance testing tool affiliated to microfocus.

Paying can open all his functions. His community edition can experience the basic performance testing process. It can predict system behavior and performance, confirm and find problems by simulating tens of millions of users to implement concurrency, load and real-time performance monitoring. Using LoadRunner can minimize test time, optimize performance and accelerate the release cycle of application systems.

2. JMeter is a performance testing tool affiliated to the Apache Foundation.

Completely open source and free tools (the default functions are not paid, and some commercial paid plug-ins may be used). Originally designed for web application testing, but later expanded to other testing areas, it can be used to test static and dynamic resources such as static files, Java servlets, Java objects, databases, FTP servers, and more. JMeter can simulate huge loads on servers, networks or objects, test their strength and analyze overall performance under different stress categories.

3. Locust is an easy-to-use distributed load testing tool.

It is completely event-based, that is, a locust node can support thousands of concurrent users in one process, and has a UI user interface based on our simple HTML+JS, which can display relevant test results in real time; the completely open-source and free source code functions can be accessed through Secondary development to meet the increasingly complex performance testing needs.

From the perspective of development language

1. Loadrunner is a performance testing tool that supports multiple scripting languages.

The scripting languages ​​it supports include java, c, Visual Basic, vbscript. However, script editing is mainly done through C language. As shown in the figure below, the extensions of the script files in Loadrunner are all .c.

2. The scripting language supported by JMeter is: Java.

Because JMeter is developed in Java, the .jar package developed in Java language can be directly applied to JMeter’s self-developed plug-ins, and even Java scripts can be written in JMeter’s BeanShell to process request and response data in the test:

3. The script development language of Locust is Python.

Because Locust is a framework of python, Python is directly used as the script development language. Although there are some basic performance testing frameworks and structures by default, if you want to obtain more performance data and content, you still need to develop test scripts:

In terms of supported communication protocols

1. The communication protocols supported by Loadrunner are: HTTP, webserver, Java Vuser, ODBC. loadrunner supports many protocols, among which the protocols that loadrunner can record include HTTP, webserver, Java Vuser, and ODBC. Specifically as shown in the figure below:

2. The protocols supported by JMeter include the following by default: Web Services - SOAP / XML-RPC, Web - HTTP, database through JDBC driver, directory - LDAP, service for messaging through JMS, service - POP3, IMAP, SMTP:

In addition to the content in the above figure, there are some other communication protocols developed by third parties.

3. The communication protocol supported by Locust supports the HTTP protocol by default, and other protocols developed by Python can also be supported. Including MQTT, custom pressure measurement protocol websocket, etc.

With regard to performance testing tools, it is generally the most reasonable to meet the actual needs of companies and enterprises. Except for local tyrants.


END meager strength

Finally, I would like to thank everyone who has read my article carefully. Looking at the fans’ growth and attention all the way, there is always a need for reciprocity. Although it is not a very valuable thing, you can take it away if you need it:

These materials should be the most comprehensive and complete preparation warehouse for [software testing] friends. This warehouse has also accompanied tens of thousands of test engineers through the most difficult journey, and I hope it can help you too!

加入我的软件测试交流群:110685036免费获取~(同行大佬一起学术交流,每晚都有大佬直播分享技术知识点)

Software testing interview applet

The software test question bank maxed out by millions of people! ! ! Who is who knows! ! ! The most comprehensive quiz mini program on the whole network, you can use your mobile phone to do the quizzes, on the subway or on the bus, roll it up!

The following interview question sections are covered:

1. Basic theory of software testing, 2. web, app, interface function testing, 3. network, 4. database, 5. linux

6. web, app, interface automation, 7. performance testing, 8. programming basics, 9. hr interview questions, 10. open test questions, 11. security testing, 12. computer basics

method of obtaining:

Guess you like

Origin blog.csdn.net/jiangjunsss/article/details/130641387