Added JMH & JMeter benchmarks for Sleuth

This commit is contained in:
Marcin Grzejszczak
2016-03-24 16:43:21 +01:00
parent ad1b62b560
commit c62a13aa35
17 changed files with 2172 additions and 6 deletions

9
scripts/runJmeterBenchmarks.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
echo "Killing the remaining apps - if something went wrong previously"
pkill -f SleuthBenchmarkingSpringApp || echo "No apps to kill"
echo "Running JMeter Benchmarks"
./mvnw clean verify --projects benchmarks --also-make -Pbenchmarks,jmeter
echo "Killing the remaining apps - if something went wrong after the tests"
pkill -f SleuthBenchmarkingSpringApp || echo "No apps to kill"

5
scripts/runJmhBenchmarks.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo "Running JMH Benchmarks"
./mvnw clean install -DskipTests --projects benchmarks --also-make -Pbenchmarks,jmh
java -Djmh.ignoreLock=true -jar benchmarks/target/benchmarks.jar org.springframework.cloud.sleuth.benchmarks.jmh.* | tee target/benchmarks.log