Read More
Read More
Menu Close

    Generating Data for Performance Testing in Magento 2

    When moving website to production we need to  check every bottle neck which may hamper site performance. As per the requirement Magento provides different profiles by using which we can generate data of different count. These profiles defines different amount of Data to generate and varying from 800 products in small profile to 800,000 in extra large profile.

    How to generate Data?
    In 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 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.

    Data set for different profile is as under:

    Parameter Small profile Medium profile Large profile Extra large profile
    websites 1 1 3 5
    store_groups 1 2 3 5
    store_views 1 2 3 5
    simple_products 800 16,000 400,000 800,000
    configurable_products 50 1,000 25,000 50,000
    categories 30 300 1,000 3,000
    categories_nesting_level 3 3 3 6
    catalog_price_rules 10 20 50 100
    catalog_target_rules 2 5 10 50
    cart_price_rules 10 20 50 100
    cart_price_rules_floor 2 2 2 5
    customers 20 200 2,000 5,000
    tax rates 40,000 40,000 40,000 40,000
    orders 80 1,600 40,000 80,000

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

    Searching for an experienced
    Magento Company ?
    Read More

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

    . . .
    Discuss on Helpdesk

    Leave a Comment

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


    Be the first to comment.

    Back to Top