赞
踩
测试图片有点多,无法直接插入大量图片,源测试文档链接:http://wenku.baidu.com/view/2b20025727d3240c8447ef8d.html
系统:WindowsXP SP3,32位
内存:4G
CPU:双核/2.2GHz
IO:33M/秒
系统:centos系统,64位
CPU:4核/2.1GHz(除了进行CPU个数测试的时候)
IO上限:未测得,未达到,未成为限制
各服务器的内存和磁盘大小因需要各不一样
1)监测速度
2)监测IO数值
3)监测连接数con
4)监测内存res
5)监测locked
1)监测内存
2)监测CPU情况
3)监测IO数值
4)SWAP
服务器MongoDB版本:2.4.8
加压机Java jdk版本:1.7.0_45
MongoDB Java驱动版本:2.9.3
词库1:dict,从英语字典里抓取7998个词汇
词库2:color,自己建立,10个词
“_id” |
系统生成,12字节, |
|
数字】“numb” |
自增的 |
|
字符串】“name” |
从词库1中随机 |
|
长字符串】“describe” |
128字节,String,固定的 |
|
时间】"time" |
ISODate("2013-11-19T08:23:03.468Z") |
|
bool】“flag” |
随机, |
|
数值】“price” |
20-1020之间随机的随机数 |
|
嵌套对象】“parameter” |
数值】“size” |
0-50之间随机数, |
字符串】“logo” |
词库1中随机前100 |
|
数组】“color” |
长度从2-10随机,内容从词库2随机 |
|
数组】“category” |
长度从2-10随机,内容从词库1随机 |
|
图片】“image” |
1.04M,名字和numb相同 |
"_id" : ObjectId("528d6cd5621e8e90e5ae7a7f"),
"number" : 0,
"name" : "mutton",
"describe" : "The most distant way in the world is not the way from birth to the end.
It is when I sit near you that you don't understand I love you.
The most distant way in the world is not that you're not sure I love you.
It is when my love is bewildering the soul, but I can't speak it out.",
"time" : ISODate("2013-11-21T02:15:49.093Z"),
"flag" : 0,
"price" : 975,
"parameter" : {
"size" : 1,
"logo" : "accelerate",
"color" : [
"black", "yellow", "black", "blue", "pink", "indigo", "red",
]
},
"category" : [
"fascination", "credit", "comparison", "island", "grandfather"
]
4g内存,单线程,单索引,从0插入20万条数据
横坐标:数据类型 纵坐标:插入时间(毫秒)
1、数组列耗时较长的可能原因:数组内字段比较多,同时每个
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。