IBM 1130 User Manual page 574

Computing system
Hide thumbs Also See for 1130:
Table of Contents

Advertisement

average, every operation within it should be counted
15 times. If, in the other hand, a certain routine is
only executed half the time, it should be counted as
half an execution. To illustrate:
X=X+6
IF(X-77.)1, 2,1
1
Z=X*14.
GO TO 3
2
Z=X*16./W
3
CONTINUE
If you assume extended precision, and a proba-
bility of one-third for path 1 and two-thirds for
path 2, the estimated execution time is
Section
Subsections
Page
70
60
I
10
02
Operation
No. of Times
x
Unit Time * Total *
1 +1/3+2/3=2
330
660
+
1
440
440
1
490
490
*
1/3+2/3=1
790
790
/
2/3
2100
1400
FLOAT
1
330
330
(6 to 6.0)
IF (real)
1
190
190
GO TO
1
7
7
4307
*In microseconds
On the average, then, this portion of your pro-
gram will require 4307 microseconds, or 4.307
milliseconds, or . 004307 seconds.
Figures 70.34 through 70.40 show some
additional examples.

Advertisement

Table of Contents
loading

Table of Contents