Performance testing

Performance tests can be found under the setup/performance-toolkit/ directory. These tests require Apache JMeter to be installed and are available on the console via the jmeter command. Apache JMeter can be downloaded and installed by following the instructions at http://jmeter.apache.org.

The crux of the performance test is defined in the benchmark.jmx file, which can be opened in the JMeter GUI tool, as shown in the following screenshot:

Performance testing

As shown in the preceding screenshot, the default benchmark.jmx tests are sectioned into three thread groups that are named setUp Thread Group, Customer Checkout, and tearDown Thread Group. We ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.