Posts

Benchmarking a t2.micro EC2 Instance

Image
I was curious how much performance you can really get out of a free tier EC2 instance, so I decided to run some benchmarks on one of them. The "t" class burstable instances seem to benchmark inconsistently at times, so I ran these benchmarks with multiple attempts. Benchmark Setup First, I started with a t2.micro (1 CPU, 1 GB memory, 10 GB disk) EC2 instance in the US-West2 (Oregon) region running RHEL 7.4. I then installed the sysbench benchmarking tools with the following commands yum -y update  (Because patching your boxes is important, dawg!) yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install sysbench Basic Benchmarks After I got sysbench installed, I ran these rather basic CPU benchmarks a few times: sysbench cpu --cpu-max-prime=6000000 --threads=1 run sysbench cpu --cpu-max-prime=6000000 --threads=2 run A t2.micro instance only has a single CPU, so the results for a dual thre