Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- OrtizOL - xCSw - http://ortizol.blogspot.com
- DECLARE @i INT SET @i = 1
- DECLARE @CPU INT SET @CPU = @@CPU_BUSY
- DECLARE @TiempoInicio DATETIME SET @TiempoInicio = GETDATE()
- WHILE @i <= 1000000
- BEGIN
- IF COALESCE('abc', 'def') = 'def'
- PRINT 1
- SET @i = @i + 1
- END
- PRINT 'COALESCE, sin argumentos NULL'
- PRINT 'Tiempo total de CPU: ' + CONVERT(varchar, @@CPU_BUSY - @CPU)
- PRINT 'Total en milisegundos: ' + CONVERT(varchar, DATEDIFF(ms, @TiempoInicio, GETDATE()))
- PRINT ''
- GO
- DECLARE @i INT SET @i = 1
- DECLARE @CPU INT SET @CPU = @@CPU_BUSY
- DECLARE @TiempoInicio DATETIME SET @TiempoInicio = GETDATE()
- WHILE @i <= 1000000
- BEGIN
- IF ISNULL('abc', 'def') = 'def'
- PRINT 1
- SET @i = @i + 1
- END
- PRINT 'ISNULL, sin argumentos NULL'
- PRINT 'Tiempo total de CPU: ' + CONVERT(varchar, @@CPU_BUSY - @CPU)
- PRINT 'Total en milisegundos: ' + CONVERT(varchar, DATEDIFF(ms, @TiempoInicio, GETDATE()))
- PRINT ''
- GO
- DECLARE @i INT SET @i = 1
- DECLARE @CPU INT SET @CPU = @@CPU_BUSY
- DECLARE @TiempoInicio DATETIME SET @TiempoInicio = GETDATE()
- WHILE @i <= 1000000
- BEGIN
- IF COALESCE(NULL, 'abc') = 'def'
- PRINT 1
- SET @i = @i + 1
- END
- PRINT 'COALESCE, primer argumento NULL'
- PRINT 'Tiempo total de CPU: ' + CONVERT(varchar, @@CPU_BUSY - @CPU)
- PRINT 'Total en milisegundos: ' + CONVERT(varchar, DATEDIFF(ms, @TiempoInicio, GETDATE()))
- PRINT ''
- GO
- DECLARE @i INT SET @i = 1
- DECLARE @CPU INT SET @CPU = @@CPU_BUSY
- DECLARE @TiempoInicio DATETIME SET @TiempoInicio = GETDATE()
- WHILE @i <= 1000000
- BEGIN
- IF COALESCE(NULL, 'abc') = 'def'
- PRINT 1
- SET @i = @i + 1
- END
- PRINT 'ISNULL, primer argumento NULL'
- PRINT 'Tiempo total de CPU: ' + CONVERT(varchar, @@CPU_BUSY - @CPU)
- PRINT 'Total en milisegundos: ' + CONVERT(varchar, DATEDIFF(ms, @TiempoInicio, GETDATE()))
- PRINT ''
- GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement