SHARE
TWEET

y_malloc and memory access plugin speed comparison

BigETI Jul 16th, 2013 1,058 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [19:13:13]  y_malloc.inc benchmark test will be done 4 times and each function will be tested 100000 times.
  2. [19:13:13]  1. test: malloc()
  3. [19:13:13]  malloc() = 96 ms
  4. [19:13:13]  1. test: free()
  5. [19:13:13]  free() = 61 ms
  6. [19:13:13]  1. test: calloc()
  7. [19:13:13]  calloc() = 128 ms
  8. [19:13:13]  1. test: mset()
  9. [19:13:13]  mset() = 14 ms
  10. [19:13:13]  1. test: mget()
  11. [19:13:13]  mget() = 13 ms
  12. [19:13:13]  1. test: msets()
  13. [19:13:13]  msets() = 62 ms
  14. [19:13:13]  1. test: mgets()
  15. [19:13:13]  mgets() = 135 ms
  16. [19:13:13]  2. test: malloc()
  17. [19:13:13]  malloc() = 95 ms
  18. [19:13:13]  2. test: free()
  19. [19:13:14]  free() = 61 ms
  20. [19:13:14]  2. test: calloc()
  21. [19:13:14]  calloc() = 130 ms
  22. [19:13:14]  2. test: mset()
  23. [19:13:14]  mset() = 15 ms
  24. [19:13:14]  2. test: mget()
  25. [19:13:14]  mget() = 13 ms
  26. [19:13:14]  2. test: msets()
  27. [19:13:14]  msets() = 61 ms
  28. [19:13:14]  2. test: mgets()
  29. [19:13:14]  mgets() = 135 ms
  30. [19:13:14]  3. test: malloc()
  31. [19:13:14]  malloc() = 96 ms
  32. [19:13:14]  3. test: free()
  33. [19:13:14]  free() = 60 ms
  34. [19:13:14]  3. test: calloc()
  35. [19:13:14]  calloc() = 125 ms
  36. [19:13:14]  3. test: mset()
  37. [19:13:14]  mset() = 13 ms
  38. [19:13:14]  3. test: mget()
  39. [19:13:14]  mget() = 13 ms
  40. [19:13:14]  3. test: msets()
  41. [19:13:14]  msets() = 61 ms
  42. [19:13:14]  3. test: mgets()
  43. [19:13:15]  mgets() = 134 ms
  44. [19:13:15]  4. test: malloc()
  45. [19:13:15]  malloc() = 94 ms
  46. [19:13:15]  4. test: free()
  47. [19:13:15]  free() = 59 ms
  48. [19:13:15]  4. test: calloc()
  49. [19:13:15]  calloc() = 126 ms
  50. [19:13:15]  4. test: mset()
  51. [19:13:15]  mset() = 14 ms
  52. [19:13:15]  4. test: mget()
  53. [19:13:15]  mget() = 13 ms
  54. [19:13:15]  4. test: msets()
  55. [19:13:15]  msets() = 60 ms
  56. [19:13:15]  4. test: mgets()
  57. [19:13:15]  mgets() = 135 ms
  58. [19:13:15]  y_malloc.inc benchmark test finished!
  59.  
  60.  
  61. [14:43:31]  Memory access plugin benchmark test will be done 4 times and each function will be tested 100000 times.
  62. [14:43:31]  1. test: MEM::malloc()
  63. [14:43:31]  MEM::malloc() = 21 ms
  64. [14:43:31]  1. test: MEM::free()
  65. [14:43:31]  MEM::free() = 38 ms
  66. [14:43:31]  1. test: MEM::calloc()
  67. [14:43:31]  MEM::calloc() = 26 ms
  68. [14:43:31]  1. test: MEM::set_val()
  69. [14:43:31]  MEM::set_val() = 11 ms
  70. [14:43:31]  1. test: MEM::get_val()
  71. [14:43:31]  MEM::get_val() = 11 ms
  72. [14:43:31]  1. test: MEM::set_arr()
  73. [14:43:31]  MEM::set_arr() = 12 ms
  74. [14:43:31]  1. test: MEM::get_arr()
  75. [14:43:31]  MEM::get_arr() = 13 ms
  76. [14:43:31]  2. test: MEM::malloc()
  77. [14:43:31]  MEM::malloc() = 22 ms
  78. [14:43:31]  2. test: MEM::free()
  79. [14:43:31]  MEM::free() = 39 ms
  80. [14:43:31]  2. test: MEM::calloc()
  81. [14:43:31]  MEM::calloc() = 26 ms
  82. [14:43:32]  2. test: MEM::set_val()
  83. [14:43:32]  MEM::set_val() = 11 ms
  84. [14:43:32]  2. test: MEM::get_val()
  85. [14:43:32]  MEM::get_val() = 33 ms
  86. [14:43:32]  2. test: MEM::set_arr()
  87. [14:43:32]  MEM::set_arr() = 38 ms
  88. [14:43:32]  2. test: MEM::get_arr()
  89. [14:43:32]  MEM::get_arr() = 21 ms
  90. [14:43:32]  3. test: MEM::malloc()
  91. [14:43:32]  MEM::malloc() = 26 ms
  92. [14:43:32]  3. test: MEM::free()
  93. [14:43:32]  MEM::free() = 50 ms
  94. [14:43:32]  3. test: MEM::calloc()
  95. [14:43:32]  MEM::calloc() = 26 ms
  96. [14:43:32]  3. test: MEM::set_val()
  97. [14:43:32]  MEM::set_val() = 11 ms
  98. [14:43:32]  3. test: MEM::get_val()
  99. [14:43:32]  MEM::get_val() = 11 ms
  100. [14:43:32]  3. test: MEM::set_arr()
  101. [14:43:32]  MEM::set_arr() = 13 ms
  102. [14:43:32]  3. test: MEM::get_arr()
  103. [14:43:32]  MEM::get_arr() = 14 ms
  104. [14:43:32]  4. test: MEM::malloc()
  105. [14:43:32]  MEM::malloc() = 21 ms
  106. [14:43:32]  4. test: MEM::free()
  107. [14:43:32]  MEM::free() = 40 ms
  108. [14:43:32]  4. test: MEM::calloc()
  109. [14:43:32]  MEM::calloc() = 26 ms
  110. [14:43:32]  4. test: MEM::set_val()
  111. [14:43:32]  MEM::set_val() = 11 ms
  112. [14:43:32]  4. test: MEM::get_val()
  113. [14:43:32]  MEM::get_val() = 11 ms
  114. [14:43:32]  4. test: MEM::set_arr()
  115. [14:43:32]  MEM::set_arr() = 12 ms
  116. [14:43:32]  4. test: MEM::get_arr()
  117. [14:43:32]  MEM::get_arr() = 14 ms
  118. [14:43:32]  Memory access plugin benchmark test finished!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top