Skip to content

Commit

Permalink
Docs: list bench command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored and grisumbras committed Jul 25, 2024
1 parent 7bd6656 commit 56f3e17
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ fetch the third party repositories. Then run
the bench program with no arguments for a
list of command line options.

```
Usage: bench [options...] <file>...
Options: -t:[p][s] Test parsing, serialization or both
(default both)
-i:[b][d][r][c][n] Test the specified implementations
(b: Boost.JSON, pool storage)
(d: Boost.JSON, default storage)
(u: Boost.JSON, null parser)
(s: Boost.JSON, convenient functions)
(o: Boost.JSON, stream operators)
(r: RapidJSON, memory storage)
(c: RapidJSON, CRT storage)
(n: nlohmann/json)
(default all)
-n:<number> Number of trials (default 6)
-b:<branch> Branch label for boost implementations
-m:(i|p|n) Number parsing mode
(i: imprecise)
(p: precise)
(n: none)
(default imprecise)
-f Include file IO into consideration when testing parsers
```

When building with b2, it is possible to create several different copies of the
bench program for different build properties (toolset, build variant, etc.).
Rather than figuring out where those programs are located from b2 output you
Expand Down

0 comments on commit 56f3e17

Please sign in to comment.