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 committed Jul 23, 2024
1 parent baff1cb commit 9ef58a2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ 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)
(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 9ef58a2

Please sign in to comment.