From eec0a21648f82e9f409ed8151e1bc83f34bfec79 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 17 Jul 2013 22:13:10 +0000
Subject: minifp (17jul13)

git-svn-id: svn://tug.org/texlive/trunk@31221 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/doc/generic/minifp/test2.tex | 59 ++++++++++++++------------
 1 file changed, 32 insertions(+), 27 deletions(-)

(limited to 'Master/texmf-dist/doc/generic/minifp/test2.tex')

diff --git a/Master/texmf-dist/doc/generic/minifp/test2.tex b/Master/texmf-dist/doc/generic/minifp/test2.tex
index 8cd7ab278c5..6d6398a8976 100644
--- a/Master/texmf-dist/doc/generic/minifp/test2.tex
+++ b/Master/texmf-dist/doc/generic/minifp/test2.tex
@@ -1,5 +1,9 @@
 \errorcontextlines999\relax
-X\input minifp.sty\relax X\MFPloadextra X
+The various ``XX'' and ``xX'' pairs test whether there are errant spaces
+in the macros or the macro files.
+
+X\input mfpextra\relax X
+X\input mfpextra\relax X
 \def\empty{}
 
 \def\frac#1#2{{#1\over#2}}
@@ -83,44 +87,45 @@ probably each equivalent to a dozen or more multiplications. Counting
 each such operation with the an estimated multiplicity, the tests
 probably perform 400 thousand or more basic operations.
 
-Of the basic operations, multiplication is (by measurement) 4 times as
-lengthy as addition, and division is about twice as lengthy as
-multiplication. Actual times depend on the machine, but the ratios remain
-pretty much the same. Here is a summary of timings on my fastest
-machine; each operation is run 500 times in a loop:
+Of the basic operations, multiplication is (by measurement) 2--4 times
+as lengthy as addition, and division is 2--3 times as lengthy as
+multiplication. Actual times depend on the machine, but the ratios
+remain pretty much the same. Here is a summary of timings on my fastest
+machine; each operation is run 500 times in a loop. (A loop in which
+an input number is processed and a value returned, but no calculations are
+performed ({\tt\string\MFPzero}), times at $0.0\,$sec.) Timing obtained
+with {\tt\string\pdfelapsedtime}.
 
 \medskip
 
 \indent\vtop{\halign{\hfil$#$&\quad$#\,$sec\cr
 \noalign{\hrule\smallskip}
-2.54321+22432.87654321      &0.015\cr
-2.54321\times22432.87654321 &0.06\cr
-22432.87654321/2.54321      &0.14\cr
-\sqrt{23456789.54321}       &0.20\cr
-1.00001234^{8000}           &0.73\cr
-\exp(2.54321)               &0.41\cr
-\sin(2.54321)               &0.45\cr
-\log(2.54321)               &0.53\cr
-\mathop{\fam0 angle}(254.321,100) &1.17\cr
+2.54321+22432.87654321      &0.016\cr
+2.54321\times22432.87654321 &0.046\cr
+22432.87654321/2.54321      &0.11\cr
+\sqrt{23456789.54321}       &0.172\cr
+1.00001234^{8000}           &0.72\cr
+\exp(2.54321)               &0.42\cr
+\sin(2.54321)               &0.41\cr
+\log(2.54321)               &0.73\cr
+\mathop{\fam0 angle}(254.321,100) &1.14\cr
 \noalign{\smallskip\hrule}
 }}
 
 \medskip
 
-Originally, all the tests combined took 21 seconds on a 4-year-old
+Originally, all the tests below combined took 21 seconds on a 4-year-old
 Windows XP under TeX Live 2011. But since then I have changed angle and
 power computations so that they are considerably more accurate, but with
-a possible reduction in speed. Of course, some of the speed loss may be
-due to the operating system.
-
-On a Windows 7 machine, 64-bit, laptop, it takes 32 seconds to process
-this file. On another Win7, machine, 32-bit, desktop, it takes 10
-seconds.
-
-The difference could be explained partially by the fact that the second
-machine is newer and partially by the fact that TeX is a 32-bit program,
-and therefore a better match to the operating system of the second
-system.
+a possible reduction in speed. I cannot test the speed reduction, since
+I no longer have that machine.
+
+For my current machines: On a Windows 7 machine, 64-bit, laptop, it
+takes 32 seconds to process this file. On another Windows 7 machine,
+32-bit, desktop, it takes about 10 seconds. (This difference could be
+explained partly by the fact that the last machine is newer and partly
+by the fact that TeX is a 32-bit program and therefore a better match to
+the 32-bit hardware.)
 
 \def\testi{% stack forms
 \startMFPprogram
-- 
cgit v1.2.3

