Forked from Marko-M/magento2-performance-toolkit.sh
Created
December 26, 2018 16:55
-
-
Save jonatanrdsantos/55fe748a0c87549a8e839ede38402386 to your computer and use it in GitHub Desktop.
Magento2 performance toolkit
This file contains 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