aboutsummaryrefslogtreecommitdiffstats
path: root/performance_check
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-09-01 22:29:07 +0200
committerJay Berkenbilt <ejb@ql.org>2022-09-01 23:15:41 +0200
commitdf3d3d23b1ad1a358d8215ccf2c7a10767dbc56f (patch)
treebb6ba733c8fb6488dbc7106efe4b14b305f04cd6 /performance_check
parente94f478217e01c040f1615e6adad6b696792fef3 (diff)
downloadqpdf-df3d3d23b1ad1a358d8215ccf2c7a10767dbc56f.tar.zst
Update performance_check to notify about qpdf/performance-test-files
Diffstat (limited to 'performance_check')
-rwxr-xr-xperformance_check26
1 files changed, 23 insertions, 3 deletions
diff --git a/performance_check b/performance_check
index 843ae79e..8bb7b69d 100755
--- a/performance_check
+++ b/performance_check
@@ -55,6 +55,12 @@ Usage: $whoami [ args ]
--workdir where to write output pdfs (default: $default_workdir)
--maxtime maximum time for a test; 0 means unlimited (default: $default_maxtime)
--iterations number of iterations (default: $default_iterations)
+
+Populate $test_dir with files you want to use for performance
+benchmarking. PDF files and qpdf JSON files are allowed. The qpdf
+release process uses a clone of
+https://github.com/qpdf/performance-test-files for this purpose.
+
";
}
@@ -130,13 +136,27 @@ my @json_test_files = ();
}
else
{
- opendir(D, $test_dir) or
- die "$whoami: can't open directory $test_dir: $!\n";
+ opendir(D, $test_dir) or die "
+$whoami: can't open test directory: $!
+
+Configured test directory: $test_dir
+
+Populate $test_dir with a clone of the
+qpdf/performance-test-files github repository.
+Run $whoami --help for details.
+
+Repository URL: https://github.com/qpdf/performance-test-files
+
+";
my @entries = readdir(D);
closedir(D);
for (sort @entries)
{
- push(@tmp, "$test_dir/$_") unless (('.' eq $_) || ('..' eq $_));
+ my $file = "$test_dir/$_";
+ if (-f $file && $file =~ m/.(pdf|json)$/i)
+ {
+ push(@tmp, $file);
+ }
}
}
foreach my $i (@tmp)