SORT-MERGE/XL Programmer's Guide (32650-90884)
Chapter 5 61
Getting SORT-MERGE/XL Information
Example of Getting Sort/Merge Statistics
Example of Getting Sort/Merge Statistics
Using the
statistics
parameter in the HPSORTINIT and HPSORTEND intrinsics, and calling
HPSORTSTAT from the core sorting routine example in Figure 2-1. on page 18 results in the
following output:
**************************************************
***************** STATISTICS *******************
**************************************************
Number of records sorted = 8
Number of intermediate passes = 0
Number of bytes used for the sort work area = 27831
Number of comparisons = 6
CPU time used (in millisecond) = 45
Elapsed time (in millisecond) = 241
Using the
statistics
parameter in the HPMERGEINIT and HPMERGEEND intrinsics, and
calling HPMERGESTAT from the core merging routine example in Chapter 2, results in the
following output:
**************************************************
***************** STATISTICS *******************
**************************************************
Number of inputfiles = 2
Number of merged records = 8
Number of bytes used for the sort work area = 27794
CPU time used (in millisecond) = 46
Elapsed time (in millisecond) = 843