What
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/.
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/.
--- 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); |