Functions | |
| def | find |
| def | find_one |
| def | insert |
| def | insert_batch |
| def | main |
| def | setup_insert |
| def | timed |
Variables | |
| int | batch_size = 100 |
| dictionary | large |
| dictionary | medium |
| int | per_trial = 5000 |
| dictionary | small = {} |
| int | trials = 2 |
| def benchmark::find | ( | db, | ||
| collection, | ||||
| x | ||||
| ) |
Definition at line 70 of file benchmark.py.
| def benchmark::find_one | ( | db, | ||
| collection, | ||||
| x | ||||
| ) |
Definition at line 66 of file benchmark.py.
| def benchmark::insert | ( | db, | ||
| collection, | ||||
| object | ||||
| ) |
Definition at line 56 of file benchmark.py.
| def benchmark::insert_batch | ( | db, | ||
| collection, | ||||
| object | ||||
| ) |
Definition at line 62 of file benchmark.py.
| def benchmark::main | ( | ) |
Definition at line 87 of file benchmark.py.
| def benchmark::setup_insert | ( | db, | ||
| collection, | ||||
| object | ||||
| ) |
Definition at line 53 of file benchmark.py.
| def benchmark::timed | ( | name, | ||
| function, | ||||
args = [], |
||||
setup = None | ||||
| ) |
Definition at line 75 of file benchmark.py.
| int benchmark::batch_size = 100 |
Definition at line 29 of file benchmark.py.
| dictionary benchmark::large |
{"base_url": "http://www.example.com/test-me",
"total_word_count": 6743,
"access_time": datetime.datetime.utcnow(),
"meta_tags": {"description": "i am a long description string",
"author": "Holly Man",
"dynamically_created_meta_tag": "who know\n what"
},
"page_structure": {"counted_tags": 3450,
"no_of_js_attached": 10,
"no_of_images": 6
},
"harvested_words": ["10gen","web","open","source","application","paas",
"platform-as-a-service","technology","helps",
"developers","focus","building","mongodb","mongo"] * 20
}
Definition at line 37 of file benchmark.py.
| dictionary benchmark::medium |
{"integer": 5,
"number": 5.05,
"boolean": False,
"array": ["test", "benchmark"]
}
Definition at line 31 of file benchmark.py.
| int benchmark::per_trial = 5000 |
Definition at line 28 of file benchmark.py.
| dictionary benchmark::small = {} |
Definition at line 30 of file benchmark.py.
| int benchmark::trials = 2 |
Definition at line 27 of file benchmark.py.