File: README.md

package info (click to toggle)
mongo-cxx-driver 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,832 kB
  • sloc: cpp: 61,365; python: 1,436; sh: 356; xml: 253; perl: 215; makefile: 21
file content (32 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This suite implements the benchmarks described in this spec: https://github.com/mongodb/specifications/blob/master/source/benchmarking/benchmarking.md

# Compiling
Configure the C++ driver to build with C++17 or newer and build the `microbenchmarks` target.

# Running
In order to run the microbenchmarks, first run `etc/microbenchmark-test-data.sh` to download the test data.

In order to run specific tests, just specify their names as arguments:
`build/benchmark/microbenchmarks BSONBench MultiBench`

To run all tests, specify `all` as an argument:
`build/benchmark/microbenchmarks all`

Full list of options:
BSONBench
SingleBench
ParallelBench
ReadBench
WriteBench
RunCommandBench

Note: run both the download script and the microbenchmarks binary from the project root.

# Notes
Note that in order to compare against the other drivers, an inMemory mongod instance should be 
used.

At this point, bson_decoding has not been added to the benchmarking suite due to the fact that
extended_bson has not been added to the C++ driver (CXX-1241).

Also note that the BSONBench tests are implemented to mirror the C driver's interpretation of the spec.