mongo的测试脚本

conn = new Mongo("mongodb://wps_credit:2f25da558f6e79c452a61bea4a8d762f@10.100.2.216:27017,10.100.2.217:27017,10.100.2.218/wps_credit?maxPoolSize=300&replicaSet=kae-mongo-test42");
db = conn.getDB("wps_credit");

var t1 = new Date();
printjson(db.getCollectionNames());

var t2 = new Date().getTime();
printjson(t1, t2, t2 - t1);