Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SORT-MERGE/XL Programmer's Guide: 900 Series HP 3000 Computer Systems > Chapter 5 Getting SORT-MERGE/XL Information

Example of Getting Sort/Merge Statistics

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Using the statistics parameter in the HPSORTINIT and HPSORTEND intrinsics, and calling HPSORTSTAT from the core sorting routine example in Figure 2-1 “Core Routine” 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
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.