Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Executing same sproc on 2 different machines (Development & Staging), same execution plan, but CPU times are different

$
0
0

Hello,

I have SQL Server 2012 instance installed on 2 different machines, one is my local machine (Development) and other on a Staging environment. The server version's and editions are all same.

When I execute a stored procedure, the Staging server takes 3 times (takes 3 seconds) as much as my local machine (takes 1 sec). The databases are same, as I backed up the DB from Stage to my local machine. The execution plans are same, the reads and writes are same. Running profiler, the only thing I am seeing different is the CPU time. The CPU time is also 3 times on stage vs on development. 

My local machine has a Intel i7 processor 3.4GHz, where as the stage server has Intel i5 2.7GHz. Also the stage server is a Virtual server having Windows Server 2012. My local machine is Windows 7. Could processor make such a difference? (3 times execution time).

Indexes are same, I rebuilt them on both machines. I tried DBCC freeproccache on both before running them. The recordsets are same. Could processor could really make such a difference on Sproc execution time?

Greatly appreciate any/all comments/thoughts.



Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>