From df3d3d23b1ad1a358d8215ccf2c7a10767dbc56f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 1 Sep 2022 16:29:07 -0400 Subject: Update performance_check to notify about qpdf/performance-test-files --- performance_check | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'performance_check') 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) -- cgit v1.2.3-54-g00ecf