對不起,necro add,但這一直是我一直在掙扎,我想添加一些信息的圖片。 VisualStudio本身在時間上增加了一個相當大的組件。這裏是基本的測試,涉及的裸機形式的應用程序和公司服務器上的內部託管已經運行的Web服務(與生成序列化大會設置爲true,所有測試):
Running in VS, Debug:
First Call: 400 ms to set up client object, 450 to call function
Second Call: 1 ms to set up client object, 14 to call function
Running as .exe, Release:
First Call: 20 ms to set up client object, 70 to call function
Second call: 1 ms to set up client object, 4 to call function
Running the Debug's .exe file outside of vs:
First Call: 20 ms to set up client object, 80 to call function
Second call: 1 ms to set up client object, 4 to call function
Running as Release within VS:
Similar results to Debug in VS -- very slow
短篇小說? Visual Studio正在爲圖片添加大量時間。而不是~90毫秒,它需要近一秒。因此,如果您正在進行性能調整,請確保在Visual Studio環境外進行測試。
網站初始化會發生什麼? – jro 2009-04-24 08:19:08