Mercurial > hg > Members > shoshi > jungle > jungle-core
view benchmark/find.js @ 309:f8e75ef7ac5d
RedBlackJungleTreeEditor delete Attribute bug fix
author | tatsuki |
---|---|
date | Thu, 26 Jan 2017 16:19: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(); }