[pzstd] Spawn less threads in tests
MinGW thread performance degrades significantly when there are a lot of threads, so limit the number of threads spawned to ~10.
This commit is contained in:
@@ -89,7 +89,7 @@ TEST(Pzstd, LargeSizes) {
|
||||
Options options;
|
||||
options.overwrite = true;
|
||||
options.inputFiles = {inputFile};
|
||||
options.numThreads = numThreads;
|
||||
options.numThreads = std::min(numThreads, options.numThreads);
|
||||
options.compressionLevel = level;
|
||||
ASSERT_TRUE(roundTrip(options));
|
||||
errorGuard.dismiss();
|
||||
|
||||
Reference in New Issue
Block a user