Result.txt 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. iPhone 6 64G
  2. 200000 item in 103 ms
  3. 1000 / 103 * 20000
  4. ===========================
  5. Memory cache set 200000 key-value pairs
  6. NSDictionary: 103.59
  7. NSDict+Lock: 126.79
  8. YYMemoryCache: 282.61
  9. PINMemoryCache: 434.40
  10. NSCache: 642.02
  11. TMMemoryCache: 48418.95
  12. ===========================
  13. Memory cache set 200000 key-value pairs without resize
  14. NSDictionary: 76.55
  15. NSDict+Lock: 96.27
  16. YYMemoryCache: 288.22
  17. PINMemoryCache: 327.28
  18. NSCache: 406.55
  19. TMMemoryCache: 120786.68
  20. ===========================
  21. Memory cache get 200000 key-value pairs
  22. NSDictionary: 72.75
  23. NSDict+Lock: 79.67
  24. YYMemoryCache: 136.06
  25. PINMemoryCache: 268.18
  26. NSCache: 173.11
  27. TMMemoryCache: 226113.28
  28. ===========================
  29. Memory cache get 100000 key-value pairs randomly
  30. NSDictionary: 83.09
  31. NSDict+Lock: 91.63
  32. YYMemoryCache: 171.24
  33. PINMemoryCache: 316.13
  34. NSCache: 249.20
  35. TMMemoryCache: 133216.34
  36. ===========================
  37. Memory cache get 200000 key-value pairs none exist
  38. NSDictionary: 69.78
  39. NSDict+Lock: 77.65
  40. YYMemoryCache: 132.74
  41. PINMemoryCache: 249.25
  42. NSCache: 167.44
  43. TMMemoryCache: 132876.79
  44. ///////// sqlite3.dylib (iOS 9.0.2 with SQLite 3.8.10.2) ////////////////////////////////////////////////////////////////////////
  45. write
  46. ===========================
  47. Disk cache set 1000 key-value pairs (value is NSNumber)
  48. YYKVFile: 8924.52
  49. YYKVSQLite: 492.65
  50. YYDiskCache: 448.79
  51. PINDiskCache: 7707.43
  52. TMDiskCache: 7537.95
  53. ===========================
  54. Disk cache set 1000 key-value pairs (value is NSData(100KB))
  55. YYKVFile: 9313.82
  56. YYKVSQLite: 6231.08
  57. YYDiskCache: 10539.94
  58. PINDiskCache: 7869.28
  59. TMDiskCache: 7707.65
  60. replace
  61. ===========================
  62. Disk cache set 1000 key-value pairs (value is NSNumber)
  63. YYKVFile: 8343.03
  64. YYKVSQLite: 821.53
  65. YYDiskCache: 1377.89
  66. PINDiskCache: 7855.98
  67. TMDiskCache: 7845.19
  68. ===========================
  69. Disk cache set 1000 key-value pairs (value is NSData(100KB))
  70. YYKVFile: 7273.65
  71. YYKVSQLite: 8269.29
  72. YYDiskCache: 6915.04
  73. PINDiskCache: 8017.28
  74. TMDiskCache: 7825.24
  75. read
  76. ===========================
  77. Disk cache get 1000 key-value pairs randomly (value is NSNumber)
  78. YYKVFile: 3457.71
  79. YYKVSQLite: 819.16
  80. YYDiskCache: 685.47
  81. PINDiskCache: 3537.93
  82. TMDiskCache: 2497.36
  83. ===========================
  84. Disk cache get 1000 key-value pairs randomly (value is NSData(100KB))
  85. YYKVFile: 4082.34
  86. YYKVSQLite: 13413.11
  87. YYDiskCache: 4221.09
  88. PINDiskCache: 4103.34
  89. TMDiskCache: 4425.64
  90. read again (with file-in-memory cache)
  91. ===========================
  92. Disk cache get 1000 key-value pairs randomly (value is NSNumber)
  93. YYKVFile: 5179.29
  94. YYKVSQLite: 600.79
  95. YYDiskCache: 688.01
  96. PINDiskCache: 2336.50
  97. TMDiskCache: 2513.61
  98. ===========================
  99. Disk cache get 1000 key-value pairs randomly (value is NSData(100KB))
  100. YYKVFile: 4071.25
  101. YYKVSQLite: 11277.24
  102. YYDiskCache: 5622.77
  103. PINDiskCache: 4279.13
  104. TMDiskCache: 4331.23
  105. read none exist
  106. ===========================
  107. Disk cache get 1000 key-value pairs none exist
  108. YYKVFile: 16.63
  109. YYKVSQLite: 17.53
  110. YYDiskCache: 17.61
  111. PINDiskCache: 64.95
  112. TMDiskCache: 194.90
  113. ===========================
  114. Disk cache get 1000 key-value pairs none exist
  115. YYKVFile: 14.45
  116. YYKVSQLite: 18.81
  117. YYDiskCache: 17.58
  118. PINDiskCache: 66.44
  119. TMDiskCache: 196.30
  120. ///////// SQLite download from www.sqlite.org (iOS 9.0.2 with SQLite 3.9.1) ////////////////////////////////////////////////////////////////////////
  121. write
  122. ===========================
  123. Disk cache set 1000 key-value pairs (value is NSNumber)
  124. YYKVFile: 8561.47
  125. YYKVSQLite: 159.68
  126. YYDiskCache: 174.67
  127. PINDiskCache: 7662.53
  128. TMDiskCache: 7578.53
  129. ===========================
  130. Disk cache set 1000 key-value pairs (value is NSData(100KB))
  131. YYKVFile: 9103.42
  132. YYKVSQLite: 8427.90
  133. YYDiskCache: 9168.39
  134. PINDiskCache: 7884.27
  135. TMDiskCache: 7692.10
  136. replace
  137. ===========================
  138. Disk cache set 1000 key-value pairs (value is NSNumber)
  139. YYKVFile: 5309.11
  140. YYKVSQLite: 252.62
  141. YYDiskCache: 501.28
  142. PINDiskCache: 8489.18
  143. TMDiskCache: 7741.30
  144. ===========================
  145. Disk cache set 1000 key-value pairs (value is NSData(100KB))
  146. YYKVFile: 6216.99
  147. YYKVSQLite: 5356.37
  148. YYDiskCache: 6592.80
  149. PINDiskCache: 8039.93
  150. TMDiskCache: 7834.50
  151. read
  152. ===========================
  153. Disk cache get 1000 key-value pairs randomly (value is NSNumber)
  154. YYKVFile: 2244.99
  155. YYKVSQLite: 258.65
  156. YYDiskCache: 225.87
  157. PINDiskCache: 2427.45
  158. TMDiskCache: 2828.23
  159. ===========================
  160. Disk cache get 1000 key-value pairs randomly (value is NSData(100KB))
  161. YYKVFile: 2983.38
  162. YYKVSQLite: 14725.93
  163. YYDiskCache: 3260.34
  164. PINDiskCache: 4300.85
  165. TMDiskCache: 4437.85
  166. read again (with file-in-memory cache)
  167. ===========================
  168. Disk cache get 1000 key-value pairs randomly (value is NSNumber)
  169. YYKVFile: 3560.50
  170. YYKVSQLite: 739.11
  171. YYDiskCache: 324.97
  172. PINDiskCache: 2396.57
  173. TMDiskCache: 2554.92
  174. ===========================
  175. Disk cache get 1000 key-value pairs randomly (value is NSData(100KB))
  176. YYKVFile: 3051.79
  177. YYKVSQLite: 13604.69
  178. YYDiskCache: 2857.67
  179. PINDiskCache: 4365.52
  180. TMDiskCache: 4373.01
  181. read none exist
  182. ===========================
  183. Disk cache get 1000 key-value pairs none exist
  184. YYKVFile: 16.71
  185. YYKVSQLite: 16.21
  186. YYDiskCache: 19.27
  187. PINDiskCache: 66.73
  188. TMDiskCache: 199.49
  189. ===========================
  190. Disk cache get 1000 key-value pairs none exist
  191. YYKVFile: 15.44
  192. YYKVSQLite: 18.64
  193. YYDiskCache: 16.90
  194. PINDiskCache: 70.25
  195. TMDiskCache: 198.95