Vector HashMap List 存取数据速度

数组大小:40000
List_List:0.0045
List :0.0818
List_HashMap:0.0072
HashMap :0.0517
List_Vector:0.0037
Vector :0.033

数组大小:400000
List_List:0.0089
List :0.1469
List_HashMap:0.0145
HashMap :1.1624
List_Vector:0.0137
Vector :0.1112

数组大小:4000000
List_List:0.0328
List :3.7776
List_HashMap:0.09
HashMap :3.2
List_Vector:0.0136
Vector :2.3252

数组大小:4000000
List_List:0.0328
List :3.6233
List_HashMap:0.0904
HashMap :3.0978
List_Vector:0.0135
Vector :2.2561

数组大小:4000000
List_List:0.0336
List :3.787
List_HashMap:0.0937
HashMap :4.037
List_Vector:0.0136
Vector :2.0675

数组大小:1000000
List_List:0.013
List :0.7597
List_HashMap:0.0266
HashMap :0.3235
List_Vector:0.0278
Vector :0.28

数组大小:1000000
List_List:0.0131
List :0.742
List_HashMap:0.0264
HashMap :0.3262
List_Vector:0.0278
Vector :0.2705

数组大小:1000000
List_List:0.0131
List :0.7217
List_HashMap:0.027
HashMap :0.3304
List_Vector:0.0277
Vector :0.2681

 数组大小:1000000
List_List:0.0136
List :0.7612
List_HashMap:0.0296
HashMap :0.3441
List_Vector:0.0283
Vector :0.2881

数组大小:2000000
List_List:0.0197
List :1.467
List_HashMap:0.0479
HashMap :0.8505
List_Vector:0.0513
Vector :0.5298

数组大小:2000000
List_List:0.0198
List :1.4664
List_HashMap:0.048
HashMap :0.8563
List_Vector:0.0516
Vector :0.5376

数组大小:2000000
List_List:0.0196
List :1.4677
List_HashMap:0.0483
HashMap :0.8363
List_Vector:0.0513
Vector :0.5424

数组大小:2000000
List_List:0.02
List :1.486
List_HashMap:0.0485
HashMap :0.8742
List_Vector:0.0512
Vector :0.5336

数组大小:2000000
List_List:0.0199
List :1.4743
List_HashMap:0.0485
HashMap :0.8218
List_Vector:0.0516
Vector :0.5583

数组大小:2000000
List_foreach:0.0201
List_for:0.0058
List :1.4534
List_HashMap:0.0483
HashMap :0.875
List_Vector:0.0526
Vector :0.573
List_Vector2:0.0088
Vector2 :0.4515

数组大小:2000000
List_foreach:0.022
List_for:0.0049
List :1.4767
List_HashMap:0.0487
HashMap :0.8448
List_Vector:0.0517
Vector :0.5622
List_Vector2:0.009
Vector2 :0.4511

数组大小:2000000
List_foreach:0.0223
List_for:0.0049
List :1.4658
List_HashMap:0.0482
HashMap :0.8407
List_Vector:0.0514
Vector :0.5398
List_Vector2:0.0089
Vector2 :0.4496

数组大小:2000000
List_foreach:0.022
List_for:0.0049
List :1.4903
List_HashMap:0.0495
HashMap :0.843
List_Vector:0.0514
Vector :0.5377
List_Vector2:0.0088
Vector2 :0.4478

posted @ 2014-11-25 10:19  锐洋智能  阅读(509)  评论(0编辑  收藏  举报