There are several factors that may affect this test, but the most significant is probably the way MySQL caches queries .
When the query starts, MySQL will cache the query text and the result. When the same request is issued again, it will simply return the result from the cache and will not actually execute the request.
Another important factor is the SQL Server metric - this is the total elapsed time, and not just the time it takes to find this record, or pull it out of the cache. In SQL Server, turning on SET STATISTICS TIME ON
will change it a bit, but you still canโt compare with the likes.
Lastly, I'm not sure if the goal of this benchmarking is to simplify the request. Are you comparing platforms for a new project? What are your selection criteria?
source share