Back to Top

Generating Data for Performance Testing in Magento 2

Updated 15 March 2024

When moving a website to production, it is crucial to identify potential performance bottlenecks.

Magento offers various profiles for generating data with varying amounts, ranging from 800 products in the small profile to 800,000 in the extra large profile, based on the requirements.

How to generate Data?
In the terminal, run the following command from your Magento root directory.

php bin/magento setup:perf:generate-fixtures setup/performance-toolkit/profiles/ce/small.xml

In the command above we have generated data using a small profile, similarly, other profiles can be found at setup/performance-toolkit/profiles/ce or setup/performance-toolkit/profiles/ee directory depending on your Magento edition.

The data set for different profiles is as under:

Searching for an experienced
Magento Company ?
Find out More
ParameterSmall profileMedium profileLarge profileExtra large profile
websites1135
store_groups1235
store_views1235
simple_products80016,000400,000800,000
configurable_products501,00025,00050,000
categories303001,0003,000
categories_nesting_level3336
catalog_price_rules102050100
catalog_target_rules251050
cart_price_rules102050100
cart_price_rules_floor2225
customers202002,0005,000
tax rates40,00040,00040,00040,000
orders801,60040,00080,000

Data source: https://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-perf-data.html

This is all for the data generation, hope this may save you some time while deploying some sample data.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home