Skip to content

Commit

Permalink
doc: include reporter: false|null to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Sep 27, 2024
1 parent ded2846 commit 66c06cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ const { Suite } = require('bench-node');
const suite = new Suite();
```

If you don't want results to be printed to the console, `false` and `null` can be used

```js
const { Suite } = require('bench-node');
const suite = new Suite({ reporter: false });
```

### `suite.add(name[, options], fn)`

* `name` {string} The name of the benchmark, displayed when reporting results.
Expand Down

0 comments on commit 66c06cb

Please sign in to comment.