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

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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