Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Magento2 performance toolkit
#!/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