With the same simple SQL statement, the query time on ECS may be faster than RDS, because it does not require network transmission time.
However, this test does not reflect the overall performance of RDS. When the pressure and concurrency of RDS is large, its performance advantages will be very obvious. Please refer to the performance White Papers of each product for details.