Last active
March 28, 2023 17:27
-
-
Save Marko-M/2d8d8a954a0234ce1656 to your computer and use it in GitHub Desktop.
Magento2 performance toolkit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generate sample data and trigger Magento2 performance toolkit jMeter test plan. | |
HOST="magento2.loc" | |
BASE_PATH="/" | |
USERS=100 | |
RAMP_PERIOD=300 | |
LOOPS=1 | |
ADMIN_USER="magento2" | |
ADMIN_PASSWORD="magento2" | |
MAGENTO_DIR="/home/marko/public_html/magento2" | |
JMETER_DIR="/home/marko/Apps/apache-jmeter-2.12" | |
OUTPUT_DIR=$MAGENTO_DIR | |
php -f $MAGENTO_DIR/dev/tools/performance-toolkit/generate.php -- \ | |
--profile=$MAGENTO_DIR/dev/tools/performance-toolkit/profiles/small.xml | |
sh $JMETER_DIR/bin/jmeter -n \ | |
-t $MAGENTO_DIR/dev/tools/performance-toolkit/benchmark.jmx \ | |
-l $OUTPUT_DIR/results.jtl \ | |
-Jreport_save_path=$OUTPUT_DIR \ | |
-Jhost=$HOST \ | |
-Jbase_path=$BASE_PATH \ | |
-Jusers=$USERS \ | |
-Jramp_period=$RAMP_PERIOD \ | |
-Jloops=$LOOPS \ | |
-Jadmin_user=$ADMIN_USER \ | |
-Jadmin_password=$ADMIN_PASSWORD | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment