title: AWS EC2 vs RDS performance
body: <p>I have an <code>m4.10xlarge</code> EC2 instance and a AWS RDS, both running MySQL 5.7 with same data. </p>
  
  <p>I tried running a few complex queries (cross joins, nested select) on them, and found that the EC2 instance has consistently better performance (lower duration and fetch time).</p>
  
  <p>Can I safely conclude the EC2 database, which has more CPUs, has better performance than RDS, which has Provisioned IOPS (SSD)?</p>
  
  <p>RDS specs:</p>
  
  <p><a href="https://i.stack.imgur.com/MgBAj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MgBAj.png" alt="enter image description here"></a></p>