| It sounds like what you customer wants to do is to calculate something
like:
CPU-load = 100% * CPU-MIPS /
( number-of-cobol-lines * number-of-instructions-per-line / execution-time )
To find the "line expansion factor" your customer needs to do
do a COBOL/MACHINE/LIST on the VAX. This will give him the machine
instructions. He could count them and then divide by the number of
lines.
Unfortunately, that method wants to try will not give your customer the
information he desires. Here are some reasons why:
1) The number of instructions generated by a COBOL statement could very from
one (maybe even zero) to hundreds.
2) The time to different execute instructions in hardware can very by
a factor of a hundred.
3) Some instructions many be emulated in software which would increase the
variation even more.
4) You have to include system overhead and I/O in order to measure the
load.
5) It sounds like he wants to compare the VAX's instructions to another
machine's. Most other machines require more instructions to perform the
same task as a VAX does. The execution time for comparable instructions
varies from machine to machine.
To measure true CPU load you have to use the tools that are designed for
it like the VMS MONITOR Utility, SPM, or possibly even PCA.
I hope this answers your question. We may have lost something in the
English translation. You mentioned VAX C in the title but not in the
note.
John
|