Update of bug #68145 (group groff):
Status: None => Need Info
Summary: Performance regression in 1.24.0 => [man]
performance regression in 1.24.0 when rendering some man pages
_______________________________________________________
Follow-up Comment #1:
I don't have the _gcc_(1) man page handy because it's DFSG-non-free, but I
_do_ have the _bash_(1) man page at hand. It is also unusually long and does
not use _tbl_(1).
I cannot reproduce the performance regression with that page.
Here is my procedure, based on your script.
$ cat ATTIC/68145.sh
#!/bin/bash -e
: ${outdev:=utf8}
: ${n:=20}
echo "generating 1 to $n copies using output device '$outdev'"
echo "find data in 68145.*.dat"
groff_args="-E -T${outdev} -man"
input=$(mktemp -t groff-test-XXX.troff)
trap 'rm -f "$input"' EXIT
echo "n 1.23.0 1.24.0"
echo "----------------"
{
for ((i=1; i <= $n; i++))
do
cat "$HOME"/share/man/man1/bash.1 >> "$input"
dur23=$(/usr/bin/time -f "%U" groff -E -M "$HOME"/groff-1.23.0/tmac
$groff_args < "$input" 2>&1 >/dev/null)
dur24=$(/usr/bin/time -f "%U" groff -E -M "$HOME"/groff-1.24.0/tmac
$groff_args < "$input" 2>&1 >/dev/null)
echo "$i $dur23" >> 68145.groff-1.23.0.dat
echo "$i $dur24" >> 68145.groff-1.24.0.dat
echo "$i $dur23 $dur24"
done
}
# vim:set expandtab:
$ cat ATTIC/68145.gnuplot
# gnuplot
set title "groff -man performance rendering n copies of bash(1)"
set style data linespoints
plot 'ATTIC/68145.groff-1.23.0.dat', 'ATTIC/68145.groff-1.24.0.dat'
pause mouse close
Plot attached.
(file #58355)
_______________________________________________________
Additional Item Attachment:
Name: 68145a.png Size: 26KiB
<https://file.savannah.gnu.org/file/68145a.png?file_id=58355>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-5479f0ac3e1f014845fd281c379bc3ccb7a72723.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68145>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
