Mercurial > hg > Members > shoshi > jungle > jungle-core
view benchmark/find.js @ 241:5a301161e36a Implementation_of_communication
change commandline sql -> nosql
author | tatsuki |
---|---|
date | Mon, 15 Feb 2016 14:04:51 +0900 |
parents | 5aad7dbb390e |
children |
line wrap: on
line source
function findDataLoop () { var date_obj = new Date(); var milliseconds = date_obj.getTime(); for (var i = 1; i<= 50000; i++) { var personData = db.person1.find({PersonId:"p:9"}).next(); var roleId = personData.roleId } date_obj = new Date(); print(date_obj.getTime() - milliseconds) } function findData () { var personVer = db.config.find({configVer:"v:1"}).next().PersonVer; var personCollection = db.getCollection(personVer); db.person1.find({PersonId:"p:9"}).next(); }