-
Notifications
You must be signed in to change notification settings - Fork 121
Benchmarking
In order to compile the benchmarks JAR run: ./gradlew benchmarks
fix-gateway-system-tests/build/libs/fix-gateway-system-tests-0.1-SNAPSHOT-benchmarks.jar
is just a standard JMH benchmark jar, so for example to run the stub decoder benchmark run:
java -jar ./fix-gateway-system-tests/build/libs/fix-gateway-system-tests-0.1-SNAPSHOT-benchmarks.jar StubDecoderBenchmark
In all the code snippets below we've set up environment variables to point to your ec2 host and key, ie:
export PEM=/path/to/pem-file.pem
export EC2=ec2-<XX-XX-XX-XX>.us-west-2.compute.amazonaws.com
If you want to build an EC2 image from scratch,
- Pick an Ubuntu HVM image
- At least a c3.2xlarge
- Install requirements/utilities
sudo apt-get install htop screen mosh sysbench
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
- Upload the current benchmark directory
scp -i $PEM -r bench/ ubuntu@$EC2:
You can optionally upload your .screenrc
scp -i $PEM ~/.screenrc ubuntu@$EC2:
If you've got access to the AMI with a pre-built benchmarking instance, you can just boot the "FIX Benchmark 2" AMI. Remember to boot it on at least a C3.X2Large compute instance.
- Re-compile and upload the benchmarks jar:
./bench/upload.sh
-
Run the benchmark on the EC2 image using the
./server
and./client
scripts in screen. You can mosh into the server with./bench/mosh.sh
. -
Pull down the flight recording to analyse locally.
./bench/get_jfr.sh