Here is something I don't understand:
$ sh -c '/usr/bin/time ./a.out'
2.40 real 2.38 user 0.01 sys
$ /usr/bin/time ./a.out
7.19 real 7.19 user 0.00 sys
The same program is 3 times slower in the second case. The effect is
systematic but depends on the program being run. I have seen inverse
behavior with another program.
Using time -l, I note that this seems to be related with a higher
value of 'involuntary context switches' (3 times more switches in the
slower case).
Running -current (SMP)
Here is my test program:
main ()
{
int i;
double x, y, z;
for (i = 0; i < 100000000; i++) z = y*x;
}
Jean-Marc
--
Jean-Marc Zucconi PGP Key: finger [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message