ip字符串长度: 15

ip count: 25

time - array:16ms, 查询次数:25000
time - map:15ms, 查询次数:25000

ip count: 42

time - array:32ms, 查询次数:42000
time - map:16ms, 查询次数:42000

ip count:104

time - array:187ms, 查询次数:104000
time - map:31ms, 查询次数:104000

ip count:439

time - array:2469ms, 查询次数:439000
time - map:125ms, 查询次数:439000

根据上面的统计结果来看,当数量在 30个左右的时候,使用array或map性能差不多。

但随着数量越来越大,能明显的看出map的查询性能比array要快好几倍。

2013-08-10

最新文章

  1. android 打包失败
  2. WINCE 获取智能设备唯一编号
  3. expert C Programing notes
  4. 教程-for do、while do 中循环退出
  5. 如何使用KMS激活win10和office
  6. 【HDOJ】2526 浪漫手机
  7. 进入MAC下面的Library目录
  8. SQL 数据库连续插入大批量数据时超时
  9. 201621123062《java程序设计》第二周学习总结
  10. Nginx模块 ngx_http_limit_req_module 限制请求速率
  11. 《javascript设计模式与开发实践》--- (单一职责原则)
  12. Django 系列博客(二)
  13. android开发(1):底部导航条的实现 | navigation tab | activity的创建
  14. Python杨辉三角
  15. 对象new和不new的理解
  16. POJ 2407 Relatives(欧拉函数入门题)
  17. Applying the Kappa architecture in the telco industry
  18. Ribbon Status Bar
  19. sublime text 显示 typescript高亮
  20. centos 7网速监控脚本

热门文章

  1. .NETCore_初探
  2. 从源码的角度再看 React JS 中的 setState
  3. 10 分钟理解 BFC 原理
  4. linux-流程控制语言
  5. PAT 1007 素数对猜想
  6. eclipse html 打开方式
  7. Log4Net日志配置
  8. ESXi 更新补丁 暂时未测试 等有时间尝试一下.
  9. Android控件第6类——杂项控件
  10. pip和conda到底有什么不一样?