MongoDB INSERT性能测试

MongoDB INSERT性能测试

 

 

 
 startDate=ISODate();
 for(var i=0;i<1000000;i++){db.test.insert({a:1+i, b:i+2, c:i+3, d:i+4, e: [1,2,3,4,5,6,i]})}
 db.runCommand({getLastError:1, j:1, w:1});
 print(ISODate()-startDate);

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *