You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmarks/README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
This suite implements the benchmarks described in this (spec)[https://github.com/mongodb/specifications/blob/master/source/benchmarking/benchmarking.rst].
4
4
5
-
In order to run the microbenchmarks, first run `../etc/microbenchmark-test-data.sh` to download the data.
5
+
In order to run the microbenchmarks, first run `./download-data.sh`. (NOTE: the data for the deeply nested BSON encoding and decoding is
6
+
currently broken, so these benchmarks will not be runnable until that's fixed).
6
7
7
8
Note: make sure you run the download script and the microbenchmarks binary from the benchmark root (the directory containing this README).
8
9
@@ -11,7 +12,7 @@ connection string by setting the `MONGODB_URI` environment variable). You can sp
11
12
collection by setting the `DATABASE_NAME` or `COLL_NAME` environment variables respectively.
12
13
13
14
Additionally, you can specify custom time frames for the benchmarks by setting the `MAX_EXECUTION_TIME`, `MIN_EXECUTION_TIME`
14
-
and `MAX_ITERATIONS` environment variables.
15
+
and `TARGET_ITERATION_COUNT` environment variables.
15
16
16
17
Run `cargo run --release -- --help` to see a full list of testing options.
17
18
@@ -30,6 +31,12 @@ the single-doc benchmarks. By default, all benchmarks are executed. The table be
30
31
| Large doc bulk insert | 7 |
31
32
| LDJSON multi-file import | 8 |
32
33
| LDJSON multi-file export | 9 |
34
+
| BSON flat decode | 10 |
35
+
| BSON flat encode | 11 |
36
+
| BSON deeply nested decode | 12 |
37
+
| BSON deeply nested encode | 13 |
38
+
| BSON full document decode | 14 |
39
+
| BSON full document encode | 15 |
33
40
| All benchmarks | all|
34
41
35
42
Note that in order to compare against the other drivers, an inMemory mongod instance should be used.
0 commit comments