New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AndersS
Lapis Lazuli | Level 10

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
Ammonite | Level 13

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-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 956 views
  • 3 likes
  • 3 in conversation