What is the real cost of various types of program calls?
*new* Here are some performance measurements which attempt to measure the cost of transferring control from an ILE RPG program to a module written in ILE RPG and to a module written in ILE C. Benchmark Descriptions: LOOPCALL1 uses CALL in a loop which iterates 50,000 times to call a RPG IV program which has no C-specs. LOOPCALLB1 uses CALLB in a loop which iterates 50,000 times to call a RPG IV module which has no C-specs. LOOPCALLB2 uses CALLB in a loop which iterates 50,000 times to call an ILE C function which has no statements. CALLXLATE1 uses CALLB in a loop which iterates 50,000 times to call a RPG IV module which uses XLATE to translate a string which is passed as a parameter to the module. CALLXLATE2 uses CALLB in a loop which iterates 50,000 times to call an ILE C function which uses the XLATEB MI instruction to translate a string which is passed as a parameter to the function.