Operating System - HP-UX
1821802
Members
3298
Online
109637
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 01:13 AM
тАО03-21-2002 01:13 AM
timex
Hi,
I was investigating the use of an alternative algorithm for a certain task. I'm not going to mention either the task or the algo, for fear of biasing the gentle reader's mind :-)
I have found that Method-2 offers a significant saving in User Time and System Time, but the Real (User) Time is the more-or-less the same, as you can see from the attachment.
If I change over to Method-2, will the users see any reduction is processing time? Can I jump out of my bathtub crying Eureka?
I was investigating the use of an alternative algorithm for a certain task. I'm not going to mention either the task or the algo, for fear of biasing the gentle reader's mind :-)
I have found that Method-2 offers a significant saving in User Time and System Time, but the Real (User) Time is the more-or-less the same, as you can see from the attachment.
If I change over to Method-2, will the users see any reduction is processing time? Can I jump out of my bathtub crying Eureka?

2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 01:35 AM
тАО03-21-2002 01:35 AM
Re: timex
In theory Real time should be the one to use; but as this depends on system performance and workload at the time the program is run, then it may be skewed.
The best way to run this is to do multiple iteration, and either time all iterations or work out an average; something like:
$ cat iterate
i=0
while (( i < 1000 ))
do
exec ${@}
(( i = i - 1 ))
done
$
$ timex iterate old-program
$ timex iterate new-program
And see the differences over this period
dave
The best way to run this is to do multiple iteration, and either time all iterations or work out an average; something like:
$ cat iterate
i=0
while (( i < 1000 ))
do
exec ${@}
(( i = i - 1 ))
done
$
$ timex iterate old-program
$ timex iterate new-program
And see the differences over this period
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 03:03 AM
тАО03-21-2002 03:03 AM
Re: timex
Is there IO involved? Method 2 is obviously saving a bit of CPU time but if there's disk IO involved then that may be whats taking up most of the 'real' time.
Regards,
Steve
Regards,
Steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP