Advertisement
empiiam

Crud Tests Test Cases

Nov 18th, 2019
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 1.12 KB | None | 0 0
  1. PRINT 'Start CrudTest_TempTable ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  2. GO
  3.  
  4. CrudTest_TempTable 1000, 100, 100
  5. GO 1000
  6. --with transaction 6.5s
  7. --without transaction 13s
  8.  
  9. PRINT 'Finish CrudTest_TempTable ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  10. PRINT 'Start CrudTest_SpidFilter_memopt_hash ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  11. GO
  12.  
  13. CrudTest_SpidFilter_memopt_hash 1000, 100, 100
  14. GO 1000
  15. --with transaction 18s - almost no io as expected
  16. --without transaction more than 120s, high io!
  17.  
  18. PRINT 'Finish CrudTest_SpidFilter_memopt_hash ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  19. PRINT 'Start CrudTest_memopt_hash ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  20. GO
  21.  
  22. CrudTest_memopt_hash 1000, 100, 100
  23. GO 1000
  24. --atomic native compilation 12.5s
  25.  
  26. PRINT 'Finish CrudTest_memopt_hash ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  27. PRINT 'Start CrudTest_tableVar ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  28. GO
  29.  
  30. CrudTest_tableVar 1000, 100, 100
  31. GO 1000
  32. --with transaction 4.5s
  33. --without transaction 4.5
  34. --atomic native compilation 1.5s
  35.  
  36. PRINT 'Finish CrudTest_tableVar ' + (CONVERT( VARCHAR(24), GETDATE(), 121))
  37. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement