Skip to content

Instantly share code, notes, and snippets.

@jgonera
Created October 22, 2011 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgonera/1306405 to your computer and use it in GitHub Desktop.
Save jgonera/1306405 to your computer and use it in GitHub Desktop.
Dumb MongoDB benchmark
var i, project;
for (i=0; i<1000000; ++i) {
project = db.projects.find({"_id": ObjectId("4ea1661a3a5c9f09b5000005")});
project[0].name; // to actually fetch the object
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment