Friday, October 18, 2013

Running wrk benchmarking tool in AWS EC2

I recently had a chance to run some benchmarks on a Play framework and dynamo db app to get some baseline numbers. I decided to use wrk and run both client and server(s) in EC2. I got wrk built and running without much hassle; however, for the impatient ones here is what I did (using the Amazon AMI)
  • Get the latest wrk version from git: "wget"
  • Extract the archive: "tar zxf 3.0.1.tar.gz"
  • Install gcc: "sudo yum install gcc"
  • Install ssl headers: "sudo yum install openssl-devel"
  • cd wrk-3.0.1 (or whatever version you installed)
  • build it : "make all"
Now you can run it using ./wrk

Happy benchmarking!