Evolution of the EC2 Network Performance: m3, m4, and m5
AWS announces new generations of EC2 instances from time to time. Typically, each generation offers better performance at lower costs. This article discusses the networking capabilities of the general purpose instances over time. Spoiler alert: you can increase the throughput of your web application, decrease the duration of your backups from EC2 to S3, and increase the maximum network throughput between two EC2 instances without additional costs.
We have measured the networking performance of EC2 instance from three different general purpose generations:
- The third generation
- The fourth generation
- The fifth generation
m5announced 2017 during re:Invent recently.
The network throughput increased slightly between each instance generation. However,
m5.2xlarge instances can burst up to 10 Gbit/s for a short period amount of time.
Level up, strengthen your AWS skills.
Our book Amazon Web Services in Action is a comprehensive introduction to computing, storing, and networking in the AWS cloud. You'll find clear, relevant coverage of all the essential AWS services, emphasizing best practices for security, high availability, and scalability. Get the first chapter for free!
The following table lists the average network throughput of m3, m4, and m5 EC2 instances in Gbit/s. We have measured the network performance daily with the
iperf3 network benchmark tool on April 12th, 2018. See EC2 Network Performance Cheat Sheet if you are interested in the details of the network performance benchmark.
|INSTANCE TYPE||M3 FAMILY||M4 FAMILY||M5 FAMILY|
|large||0.69 Gbit/s||0.45 Gbit/s||0.74 Gbit/s|
|xlarge||0.99 Gbit/s||0.74 Gbit/s||1.24 Gbit/s|
|2xlarge||0.99 Gbit/s||0.99 Gbit/s||2.49 Gbit/s|
|4xlarge||1.99 Gbit/s||4.97 Gbit/s|
m4 instances offer constant network throughput. In contrast,
m5.2xlarge can burst network throughput up to 10 Gbit/s for a short period as illustrated in the following table.
The network performance benchmarks run for 60 minutes.
- 90th Percentile: throughput was reached for 6 minutes.
- 70th Percentile: throughput was reached for 18 minutes.
- 50th Percentile: throughput was reached for 30 minutes.
- 30th Percentile: throughput was reached for 42 minutes.
|Instance Type||Maximum||90th Percentile||70th Percentile||50th Percentile||30th Percentile|
As usual, making use of the latest instance generation gives you more performance for the same money. Especially, if your workload profits from a network performance burst for a few minutes, making use of the
m5 instance types can increase throughput dramatically.