diff options
| author | Eddie Lopez <ejlopez00@gmail.com> | 2022-09-30 16:51:33 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-07 17:49:17 +0000 |
| commit | cecaa25bd31622f5ae0df7fd5c8c7f02afde8715 (patch) | |
| tree | 8026896dc5862f0193d34901b878ba1fc1c61086 /test/codegen | |
| parent | 747e1961e95c2eb3df62e045b90b111c2ceea337 (diff) | |
| download | go-cecaa25bd31622f5ae0df7fd5c8c7f02afde8715.tar.xz | |
testing: add an example showcasing B.RunParallel with B.ReportMetric
This commit was dedicated to adding an example of using B.ReportMetrics
with B.RunParallel called ExampleB_ReportMetric_parallel. In this
example, the same algorithm for ExampleB_ReportMetric was used, instead
with a concurrent for loop using PB.Next instead of a standard one.
There is also notes noting when to use the B.ReportMetric methods when
running concurrent testing.
Fixes #50756
Change-Id: I2a621b4e367af5f4ec47d38a0da1035a8d52f628
Reviewed-on: https://go-review.googlesource.com/c/go/+/437815
Reviewed-by: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
