Follow-up Comment #7, bug #68145 (group groff):

I still can't reproduce this.


$ env n=50 bash ATTIC/68145a.bash
generating up to 50 copies of "/home/branden/share/man/man1/bash.1" using
device 'utf8'
find data in 68145a.*.dat
n       1.23.0  1.24.0
1       0.27    0.27
2       0.55    0.53
3       0.81    0.79
4       1.13    1.28
5       1.37    1.48
6       1.71    1.72
7       2.12    2.07
8       2.39    2.33
9       2.80    2.59
10      3.14    3.06
11      3.54    3.46
12      3.90    3.84
13      4.65    4.66
14      5.02    4.80
15      5.58    5.40
16      5.93    5.91
17      6.58    6.70
18      6.92    7.02
19      7.94    7.40
20      7.64    7.51
21      8.87    8.55
22      9.07    8.88
23      9.20    9.07
24      10.10   10.22
25      9.91    10.14
26      11.14   11.71
27      11.36   10.89
28      11.77   11.60
29      12.22   12.05
30      12.88   12.89
31      13.29   13.49
32      15.09   15.78
33      14.94   14.47
34      15.39   15.32
35      16.26   15.69
36      17.01   16.82
37      17.28   17.28
38      17.78   17.70
39      18.91   18.67
40      18.97   19.31
41      20.20   20.22
42      21.07   20.72
43      21.49   21.28
44      21.97   21.90
45      22.76   22.37
46      24.86   24.99
47      25.39   26.19
48      26.15   29.27
49      25.28   30.24
50      34.42   32.53
$ cat ATTIC/68145a.bash
#!/bin/bash -e

: ${dev:=utf8}
: ${n:=20}
: ${page:="$HOME"/share/man/man1/bash.1}
: ${extra_args:=}

echo "generating up to $n copies of \"$page\" using device '$dev'"
echo "find data in 68145a.*.dat"

input=$(mktemp -t groff-test-XXX.troff)
trap 'rm -f "$input"' EXIT

printf "n\t1.23.0\t1.24.0\n"

for ((i=1; i <= n; i++))
do
    cat "$page" >> "$input"

    # `-E` silences statistical noise from writes to and flushes of
    # the standard error stream arising from diagnostics.
    dur23=$(/usr/bin/time -f "%U" groff -E \
        -M "$HOME"/groff-1.23.0/tmac -man $extra_args -T$dev \
        < "$input" 2>&1 >/dev/null)
    dur24=$(/usr/bin/time -f "%U" groff -E \
        -M "$HOME"/groff-1.24.0/tmac -man $extra_args -T$dev \
        < "$input" 2>&1 >/dev/null)

    echo "$i $dur23" >> 68145a.groff-1.23.0.n$n.dat
    echo "$i $dur24" >> 68145a.groff-1.24.0.n$n.dat
    printf "%s\t%s\t%s\n" $i $dur23 $dur24
done

# vim:set expandtab shiftwidth=4 softtabstop=4:
$ cat ATTIC/68145a.gnuplot
# gnuplot
set title "groff -man performance rendering n copies of bash(1)"
set style data linespoints
plot 'ATTIC/68145a.groff-1.23.0.n50.dat', 'ATTIC/68145a.groff-1.24.0.n50.dat'
pause mouse close




(file #58361)

    _______________________________________________________

Additional Item Attachment:

Name: 68145a2.png                    Size: 28KiB
    <https://file.savannah.gnu.org/file/68145a2.png?file_id=58361>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-eea52b5e705aceab0b59a30a7e37b2d35bfc1c3a.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68145>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to