Module: workloads/index_build

A workload designed to profile indexing a single field.

Test

Index a collection of 10M documents of size ~1KB, the field indexed contains a random integer field (in the range 0 to 100M -1).

Results are reported as the number of docs indexed / second.

Setup

Supports standalone, replica and shard

Notes

  • Insert 10M documents, each slightly larger than 1KB and containing the following fields:
    • _id: an ObjectId
    • paddingField: a string of 1K 'x's
    • numericField: a random integer numeric field in the range 0 to 100M -1.

Owning-team

mongodb/product-query

Source:

Members

(inner) build_in_background

Whether or not to perform a {background: true} index build.

Source: