Tema: Performance test results (kb)
Autorius: Jornada Del Muerto
Data: 2010-08-12 16:27:12
Testas atliktas ant MSSQL 2005 Express, Siunciu sql skripta prie reply
---------------------------------------------------------------------------------------------------
--- TESTS STARTING 1000000 of cycles
---------------------------------------------------------------------------------------------------
method: cast(floor(cast(getdate() as float)) as datetime): 1570 /[2010-08-12 16:25:10.063]-[2010-08-12 16:25:11.633]
method: DateAdd(dd, 0, DateDiff(dd, 0, getdate())): 1236 /[2010-08-12 16:25:11.633]-[2010-08-12 16:25:12.870]
method: DateAdd(dd, 0, DateDiff(dd, 0, getdate())): 2373 /[2010-08-12 16:25:12.870]-[2010-08-12 16:25:15.243]
---------------------------------------------------------------------------------------------------
Time in MS, FLOOR=1570ms, Datediff=1236ms, CAST CHAR=2373ms
---------------------------------------------------------------------------------------------------
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
---------------------------------------------------------------------------------------------------
-- Best result is: select DateAdd(dd, 0, DateDiff(dd, 0, getDate()))
---------------------------------------------------------------------------------------------------