layout | group | subgroup | title | menu_title | menu_node | menu_order | version | github_link | redirect_from |
---|---|---|---|---|---|---|---|---|---|
default |
config-guide |
04_CLI |
Generate data for performance testing |
Generate data for performance testing |
800 |
2.0 |
config-guide/cli/config-cli-subcommands-perf-data.md |
/guides/v1.0/config-guide/cli/config-cli-subcommands-perf-data.html |
You can adjust the amount of data you create using profiles (small, medium, large, and extra large). The next section discusses profiles in more detail.
The following figure shows how a product displays on the storefront using the small profile:
This gives you an idea about what the data looks like.
{% include install/first-steps-cli.html %} In addition to the command arguments discussed here, see Common arguments. The following table provides details about the data generator profiles (small, medium, large, and extra large).Profiles are located in <your Magento install dir>/setup/performance-toolkit/profiles/<ce or ee>
For example, /var/www/html/magento2/setup/performance-toolkit/profiles/ce
<tr>
<td><p>websites</p></td>
<td><p>1</p></td>
<td><p>1</p></td>
<td><p>3</p></td>
<td><p>5</p></td>
</tr>
<tr>
<td><p>store_groups</p></td>
<td><p>1</p></td>
<td><p>2</p></td>
<td><p>3</p></td>
<td><p>5</p></td>
</tr>
<tr>
<td><p>store_views</p></td>
<td><p>1</p></td>
<td><p>2</p></td>
<td><p>3</p></td>
<td><p>5</p></td>
</tr>
<tr>
<td><p>simple_products</p></td>
<td><p>800</p></td>
<td><p>16,000</p></td>
<td><p>400,000</p></td>
<td><p>800,000</p></td>
</tr>
<tr>
<td><p>configurable_products</p></td>
<td><p>50</p></td>
<td><p>1,000</p></td>
<td><p>25,000</p></td>
<td><p>50,000</p></td>
</tr>
<tr>
<td><p>categories</p></td>
<td><p>30</p></td>
<td><p>300</p></td>
<td><p>1,000</p></td>
<td><p>3,000</p></td>
</tr>
<tr>
<td><p>categories_nesting_level</p></td>
<td><p>3</p></td>
<td><p>3</p></td>
<td><p>3</p></td>
<td><p>6</p></td>
</tr>
<tr>
<td><p>catalog_price_rules</p></td>
<td><p>10</p></td>
<td><p>20</p></td>
<td><p>50</p></td>
<td><p>100</p></td>
</tr>
<tr>
<td><p>catalog_target_rules</p></td>
<td><p>2</p></td>
<td><p>5</p></td>
<td><p>10</p></td>
<td><p>50</p></td>
</tr>
<tr>
<td><p>cart_price_rules</p></td>
<td><p>10</p></td>
<td><p>20</p></td>
<td><p>50</p></td>
<td><p>100</p></td>
</tr>
<tr>
<td><p>cart_price_rules_floor</p></td>
<td><p>2</p></td>
<td><p>2</p></td>
<td><p>2</p></td>
<td><p>5</p></td>
</tr>
<tr>
<td><p>customers</p></td>
<td><p>20</p></td>
<td><p>200</p></td>
<td><p>2,000</p></td>
<td><p>5,000</p></td>
</tr>
<tr>
<td><p>tax rates</p></td>
<td><p>40,000</p></td>
<td><p>40,000</p></td>
<td><p>40,000</p></td>
<td><p>40,000</p></td>
</tr>
<tr>
<td><p>orders</p></td>
<td><p>80</p></td>
<td><p>1,600</p></td>
<td><p>40,000</p></td>
<td><p>80,000</p></td>
</tr>
</tbody>
Parameter | Small profile | Medium profile | Large profile | Extra large profile |
---|
Command options:
magento setup:perf:generate-fixtures {path to profile}
where <path to profile>
specifies the absolute file system path to and name of a profile.
For example,
magento setup:perf:generate-fixtures /var/www/html/magento2/setup/performance-toolkit/profiles/ce/small.xml
Sample output for the small profile:
Generating profile with following params:
|- Websites: 1
|- Store Groups: 1
|- Store Views: 1
|- Categories: 30
|- Simple products: 800
|- Configurable products: 50
|- Customers: 20
|- Cart Price Rules: 10
|- Catalog Price Rules: 10
|- Orders: 80
Generating websites, stores and store views... done in <time>
Generating categories... done in <time>
Generating simple products... done in <time>
Generating configurable EAV variations... done in <time>
... more ...