/usr/lib/X11/x11perfcomp/perfratio is in x11-apps 7.7+2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #!/bin/sh
awk '
/^ 1/ && READY == 0 { printf (" 1 ");
for (i = 2; i < NF; i++)
printf (" %2d ", i);
printf (" Operation\n");
next;
}
/^---/ { printf ("--------");
for (i = 2; i < NF; i++)
printf (" ------");
printf (" ---------\n");
READY=1; next;
}
READY==1 {
base=$1;
printf ("%8.1f", base);
for (i = 2; i < '$1'; i++) {
if (base == 0)
printf (" lots ", $i);
else {
rate=$i/base;
if (rate < .1)
printf (" %6.3f", rate);
else if (rate < 1000)
printf (" %6.2f", rate);
else
printf (" %6.0f", rate);
}
}
printf (" ");
for (; i <= NF; i++)
{
printf ("%s ", $i);
}
printf ("\n");
next;
}
{ print $0; }
'
|