]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd-validate.t
nntp: reduce memory overhead of zlib
[public-inbox.git] / t / nntpd-validate.t
index 1a325105cb5a7f789cf5a6d5068f860c0a9b72fc..532ef7293320a1e86412944f31d92e2cb98d45f0 100644 (file)
@@ -112,11 +112,17 @@ sub do_get_all {
                        }
                }
        }
+
+       # hacky bytes_read thing added to Net::NNTP for testing:
+       my $bytes_read = '';
+       if ($nntp->can('bytes_read')) {
+               $bytes_read .= ' '.$nntp->bytes_read.'b';
+       }
        my $q = $nntp->quit;
        print STDERR "# quit failed: ".$nntp->code."\n" if !$q;
        my $elapsed = sprintf('%0.3f', clock_gettime(CLOCK_MONOTONIC) - $t0);
        my $res = $dig->hexdigest;
-       print STDERR "# $desc - $res (${elapsed}s)\n";
+       print STDERR "# $desc - $res (${elapsed}s)$bytes_read\n";
        $res;
 }
 my @tests = ([]);