BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AndersS
Pyrite | Level 9

Hi! I want to measure cpu time in SAS ODA. The time seems to vary with +/- 5% (sometimes even more).


So I can run, the same program say 10 times. Then  add the values (user cpu time and system cpu time) from the log, divide by 10.
Is there any better way?

 

Many thansk in advance! /Br AndersS

 

Anders Sköllermo (Skollermo in English)
1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

CPU and (particularly) real time is highly dependent on external factors like number of processes competing for resources. So it is prudent to run programs multiple times and take the mean.

 

View solution in original post

2 REPLIES 2
SASJedi
SAS Super FREQ

If your goal is benchmarking (comparing the efficiency of different techniques) I usually run each version 5 times, sum up the CPU time and sum up the elapsed time, and divide those totals by 5 to get the number I use for comparison.  

Check out my Jedi SAS Tricks for SAS Users
Kurt_Bremser
Super User

CPU and (particularly) real time is highly dependent on external factors like number of processes competing for resources. So it is prudent to run programs multiple times and take the mean.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 444 views
  • 3 likes
  • 3 in conversation