Skip to content

Commit 8494808

Browse files
Merge pull request #61 from cmuench/feature/add-performance-fixture-docs
Describe performance fixtures on performance testing page
2 parents 7140eb9 + 349da68 commit 8494808

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

performance-testing.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,28 @@ include:
7171
- Gatling
7272
- Locust
7373

74+
## Performance Fixtures
75+
76+
Performance fixtures in Magento 2 are essential for generating a large set of data for performance testing. These fixtures allow you to simulate various scenarios that your Magento store might encounter in a real-world environment. This documentation aims to provide an in-depth guide on how to configure and use performance fixtures in Magento 2.
77+
78+
### Understanding Performance Fixtures
79+
80+
Performance fixtures are XML configurations that define the type and amount of data to be generated. They are located in the `<magento_root>/setup/performance-toolkit/profiles/` directory. You can choose between different profiles like **small**, **medium**, **medium_msite**, **large** and **extra-large** based on your testing needs.
81+
82+
### Running the Data Generator
83+
84+
Before running the data generator, make sure to disable all cron jobs to avoid conflicts. Use the following command to generate data:
85+
86+
```bash
87+
bin/magento setup:performance:generate-fixtures <path-to-profile>
88+
```
89+
90+
Here's a sample command to generate data using the small profile:
91+
92+
```bash
93+
bin/magento setup:performance:generate-fixtures setup/performance-toolkit/profiles/ce/small.xml
94+
```
95+
7496
## Best Practices for Performance Testing in PHP and Magento 2
7597

7698
To ensure effective performance testing, follow these best practices:

0 commit comments

Comments
 (0)