Skip to content

Commit

Permalink
[chore] set GOMAXPROCS for collector subprocess (open-telemetry#27449)
Browse files Browse the repository at this point in the history
This will result in more consistent benchmarks across different
environments.

Fixes open-telemetry#27429

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored and jmsnll committed Nov 12, 2023
1 parent 629a98d commit 7224989
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testbed/testbed/child_process_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ func (cp *childProcessCollector) Start(params StartParams) error {
}
// #nosec
cp.cmd = exec.Command(exePath, args...)
cp.cmd.Env = append(os.Environ(),
"GOMAXPROCS=2",
)

// Capture standard output and standard error.
cp.cmd.Stdout = logFile
Expand Down

0 comments on commit 7224989

Please sign in to comment.