Skip to content

Instantly share code, notes, and snippets.

@jaffamonkey
Last active February 3, 2018 13:16
Show Gist options
  • Save jaffamonkey/42f2a134ed347b1d23cc0e4fa4ab7098 to your computer and use it in GitHub Desktop.
Save jaffamonkey/42f2a134ed347b1d23cc0e4fa4ab7098 to your computer and use it in GitHub Desktop.
CLI: Download, install and run JMeter
#!/bin/bash
# Download and install JMeter
wget http://mirror.reverse.net/pub/apache//jmeter/binaries/apache-jmeter-3.3.tgz && wget https://www.apache.org/dist/jmeter/binaries/apache-jmeter-3.3.tgz.asc && wget -O - https://www.apache.org/dist/jmeter/KEYS |gpg --import && gpg --verify apache-jmeter-3.3.tgz.asc && tar -zxf apache-jmeter-3.3.tgz && rm apache-jmeter-3.3.tgz
# Run load test and create dashboard with stats and graphs
./apache-jmeter-3.3/bin/jmeter -n -t load-test-plan.jmx -l ../reports/html/jmeterreport2.jtl -e -o /dashboard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment