Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Apr 15, 2024
1 parent 075fcfc commit 66e022e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,14 @@ It may make your benchmarks slower, check #42.
// options way (recommended)
bench.threshold = 10 // The maximum number of concurrent tasks to run. Defaults to Infinity.
bench.concurrency = "task" // The concurrency mode to determine how tasks are run.
// await bench.warmup()
await bench.run()

// standalone method way
await bench.runConcurrently(10, "task") // with runConcurrently, mode is set to 'bench' by default
```

The first way of doing concurrency also affects `bench.warmup` and makes it concurrent too.
The options way of doing concurrency also affects `bench.warmup` and makes it concurrent too. Useful for concurrent warm ups.

## Prior art

Expand Down

0 comments on commit 66e022e

Please sign in to comment.