[progress Communities] [progress Openedge Abl] Forum Post: Do Loop And Cpu Frequency

  • Thread starter Thread starter George Potemkin
  • Start date Start date
Status
Not open for further replies.
G

George Potemkin

Guest
If we run a simplest code like: DEFINE VARIABLE n AS INTEGER NO-UNDO INITIAL 1000000. DEFINE VARIABLE i AS INTEGER NO-UNDO. ETIME(TRUE). DO i = 1 TO n: END. MESSAGE ETIME VIEW-AS ALERT-BOX INFO BUTTONS OK. should the loop duration be defined mainly by CPU frequency? Results do depend from 32-bit vs 64-bit versions of Progress but only slightly . The higher frequency the faster code? Should the loop duration multiplied CPU frequency be a constant? The tests do not confirm this assumption: Time MHz Time*KHz Host Progress 2.334 1165 2.72 host5 10.2B 2.494 1165 2.91 host5 11.6 0.158 2395 0.38 host3 10.2B 0.149 2395 0.36 host3 11.6 0.166 3400 0.56 host2 10.2B 0.158 3400 0.54 host2 11.1 0.150 3400 0.51 host4 11.6 0.219 3425 0.75 host1 11.6 CPU frequency in the table is what is reported by OS. What are the factors I missed?

Continue reading...
 
Status
Not open for further replies.
Back
Top