Advertisement
Guest User

Untitled

a guest
Feb 15th, 2012
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. -------
  2. Running tests with random numbers:
  3. -------
  4. stdlib qsort - ok, 1591293.0 usec
  5. quick sort - ok, 831363.0 usec
  6. merge sort - ok, 980977.0 usec
  7. heap sort - ok, 982243.0 usec
  8. shell sort time - ok, 1298951.0 usec
  9. tim sort - ok, 1136797.0 usec
  10. in-place merge sort - ok, 940911.0 usec
  11. -------
  12. Running tests with sorted numbers:
  13. -------
  14. stdlib qsort - ok, 629519.0 usec
  15. quick sort - ok, 186142.0 usec
  16. merge sort - ok, 311264.0 usec
  17. heap sort - ok, 621767.0 usec
  18. shell sort time - ok, 268373.0 usec
  19. tim sort - ok, 31830.0 usec
  20. in-place merge sort - ok, 25924.0 usec
  21. -------
  22. Running tests with sorted blocks of length 10:
  23. -------
  24. stdlib qsort - ok, 1466646.0 usec
  25. quick sort - ok, 823195.0 usec
  26. merge sort - ok, 881472.0 usec
  27. heap sort - ok, 971185.0 usec
  28. shell sort time - ok, 1229502.0 usec
  29. tim sort - ok, 1068402.0 usec
  30. in-place merge sort - ok, 856443.0 usec
  31. -------
  32. Running tests with sorted blocks of length 100:
  33. -------
  34. stdlib qsort - ok, 1203088.0 usec
  35. quick sort - ok, 709371.0 usec
  36. merge sort - ok, 656977.0 usec
  37. heap sort - ok, 935726.0 usec
  38. shell sort time - ok, 1083065.0 usec
  39. tim sort - ok, 564882.0 usec
  40. in-place merge sort - ok, 680852.0 usec
  41. -------
  42. Running tests with sorted blocks of length 10000:
  43. -------
  44. stdlib qsort - ok, 702682.0 usec
  45. quick sort - ok, 550177.0 usec
  46. merge sort - ok, 345755.0 usec
  47. heap sort - ok, 777558.0 usec
  48. shell sort time - ok, 445839.0 usec
  49. tim sort - ok, 95993.0 usec
  50. in-place merge sort - ok, 227780.0 usec
  51. -------
  52. Running tests with swapped size/2 pairs:
  53. -------
  54. stdlib qsort - ok, 1489415.0 usec
  55. quick sort - ok, 771991.0 usec
  56. merge sort - ok, 835602.0 usec
  57. heap sort - ok, 939736.0 usec
  58. shell sort time - ok, 1284249.0 usec
  59. tim sort - ok, 967643.0 usec
  60. in-place merge sort - ok, 829904.0 usec
  61. -------
  62. Running tests with swapped size/8 pairs:
  63. -------
  64. stdlib qsort - ok, 1568934.0 usec
  65. quick sort - ok, 819501.0 usec
  66. merge sort - ok, 973560.0 usec
  67. heap sort - ok, 980925.0 usec
  68. shell sort time - ok, 1289475.0 usec
  69. tim sort - ok, 1133957.0 usec
  70. in-place merge sort - ok, 924596.0 usec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement