Example of Getting Sort/Merge Statistics [ SORT-MERGE/XL Programmer's Guide ] MPE/iX 5.0 Documentation
SORT-MERGE/XL Programmer's Guide
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, 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 |
| |
| |
| |
___________________________________________________________________
MPE/iX 5.0 Documentation