1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

[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:
Nick Terrell
2016-09-22 18:59:22 -07:00
parent 2b4de225e1
commit 5ca471990b
3 changed files with 20 additions and 20 deletions

View File

@ -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();