patch for https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz. this patch is quote from https://dev.classmethod.jp/articles/ec2-benchmarking-cloudformation/.
Created
March 24, 2021 07:35
-
-
Save hitsumabushi/7aa2e7abf7925688bebf1807dc43f8af to your computer and use it in GitHub Desktop.
For unixbench on more than 16vCPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Run.orig 2021-03-18 09:37:57.797999641 +0000 | |
+++ Run 2021-03-18 09:43:38.611999741 +0000 | |
@@ -106,10 +106,10 @@ my $TESTDIR = getDir('UB_TESTDIR', $BASE | |
# Configure the categories to which tests can belong. | |
my $testCats = { | |
- 'system' => { 'name' => "System Benchmarks", 'maxCopies' => 16 }, | |
+ 'system' => { 'name' => "System Benchmarks", 'maxCopies' => 0 }, | |
'2d' => { 'name' => "2D Graphics Benchmarks", 'maxCopies' => 1 }, | |
'3d' => { 'name' => "3D Graphics Benchmarks", 'maxCopies' => 1 }, | |
- 'misc' => { 'name' => "Non-Index Benchmarks", 'maxCopies' => 16 }, | |
+ 'misc' => { 'name' => "Non-Index Benchmarks", 'maxCopies' => 0 }, | |
}; | |
@@ -1329,7 +1329,7 @@ sub runTests { | |
# If the benchmark doesn't want to run with this many copies, skip it. | |
my $cat = $params->{'cat'}; | |
my $maxCopies = $testCats->{$cat}{'maxCopies'}; | |
- next if ($copies > $maxCopies); | |
+ next if ($maxCopies > 0 && $copies > $maxCopies); | |
# Run the benchmark. | |
my $bresult = runBenchmark($bench, $params, $verbose, $logFile, $copies); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment