[DOCS-345] Document benchRun Created: 18/Jul/12  Updated: 22/Jan/14  Resolved: 01/Aug/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.2

Type: Task Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Andrew Emil (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 28 weeks ago

 Description   

There's a tiny bit about it here: http://www.mongodb.org/display/DOCS/JS+Benchmarking+Harness, but there are ~6000 undocumented options.



 Comments   
Comment by Zhehao Mao [ 08/Aug/12 ]

I've added these two paragraphs to the wiki

Options

  • host - the hostname of the machine mongod is running on (defaults to localhost)
  • username - the username to use when authenticating to mongod (only use if running with auth)
  • password - the password to use when authenticating to mongod (only use if running with auth)
  • db - the database to authenticate to (only necessary if running with auth)
  • ops - a list of objects describing the operations to run (documented below)
  • parallel - the number of threads to run (defaults to single thread)
  • seconds - the amount of time to run the tests for (defaults to one second)

Operation Options

  • ns - the namespace of the collection you are running the operation on, should be of the form
    "db.collection"
  • op - the type of operation, can be "findOne", "insert", or "update"
  • query - the query object to use when querying or updating documents
  • update - the update object (same as 2nd argument of update() function)
  • doc - the document to insert into the database (only for insert)
  • safe - boolean specifying whether to use safe writes (only for update and insert)
Generated at Thu Feb 08 07:38:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.