News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

GetCpuFrequency Tests

Started by dedndave, October 13, 2015, 08:34:58 PM

Previous topic - Next topic

Siekmanski

QueryPerformanceFrequency: 00000000_00DA7A64h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00240010h
              dwSleepTime: 583
             dwMultiplier: 7330908
                 Measured: 1993179744, 1993179680, 1993180756, 1993181674, 1993181084
                   Sorted: 1993179680, 1993179744, 1993180756, 1993181084, 1993181674

          GetCpuFrequency: 3402081 KHz

Press any key to continue ...
Creative coders use backward thinking techniques as a strategy.

TWell

AMD 2.8 GHz
AMD Athlon(tm) II X2 220 Processor
QueryPerformanceFrequency: 00000000_00DA7A64h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00240010h
              dwSleepTime: 583
             dwMultiplier: 7330908
                 Measured: 1640441959, 1640437624, 1640440917, 1640440083, 16404
39766
                   Sorted: 1640437624, 1640439766, 1640440083, 1640440917, 16404
41959

          GetCpuFrequency: 2800001 KHz

TWell

#47
AMD E450 1.65 GHzQueryPerformanceFrequency: 00000000_00188916h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00240010h
              dwSleepTime: 5214
             dwMultiplier: 823274
                 Measured: 817, 1045, 459, 846, 903
                   Sorted: 459, 817, 846, 903, 1045

          GetCpuFrequency: 0 KHz
AMD 1,35 GHzQueryPerformanceFrequency: 00000000_00141434h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00240010h
              dwSleepTime: 6372
             dwMultiplier: 673737
                 Measured: 560, 808, 924, 371, 944
                   Sorted: 371, 560, 808, 924, 944

          GetCpuFrequency: 0 KHz

dedndave

thanks again, guys   :t

that gives me enough data to fix the problems - lol

dedndave

ok - i changed the way it works

before, i tried to use a fixed elapse count for QueryPerformanceCounter
i was not prepared to see such low performance counter frequencies

with this one, i use a fixed amount of time, instead

QueryPerformanceFrequency: 00000000_B2D08510h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00340805h
             dwPerfPeriod: 11718789
             dwMultiplier: 256
                 Measured: 11719050, 11719673, 11719275, 11718990, 11718780
                   Sorted: 11718780, 11718990, 11719050, 11719275, 11719673

          GetCpuFrequency: 3000069 KHz

Press any key to continue ...

TWell

AMD E1-6010 1,35 GHz
QueryPerformanceFrequency: 00000000_00141435h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00341E0Dh
             dwPerfPeriod: 5140
             dwMultiplier: 256
                 Measured: 5264337, 5264364, 5264158, 5264324, 5264316
                   Sorted: 5264158, 5264316, 5264324, 5264337, 5264364

          GetCpuFrequency: 1347666 KHz

TouEnMasm

QueryPerformanceFrequency: 00000000_003408A8h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 0034080Dh
             dwPerfPeriod: 13321
             dwMultiplier: 256
                 Measured: 13641720, 13641590, 13641614, 13641747, 13641348
                   Sorted: 13641348, 13641590, 13641614, 13641720, 13641747

          GetCpuFrequency: 3492250 KHz

Press any key to continue ...

It is the same frequence given by CPUID

Fa is a musical note to play with CL

sinsi

 :t
QueryPerformanceFrequency: 00000000_003708E5h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00341E0Dh
             dwPerfPeriod: 14089
             dwMultiplier: 256
                 Measured: 14428148, 14428110, 14427783, 14427204, 14428086
                   Sorted: 14427204, 14427783, 14428086, 14428110, 14428148

          GetCpuFrequency: 3693593 KHz

MichaelW

Running on my 2.16GHz laptop:

QueryPerformanceFrequency: 00000000_0020492Bh
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 0034080Bh
             dwPerfPeriod: 8265
             dwMultiplier: 256
                 Measured: 8464378, 8464118, 8464456, 8464326, 8464014
                   Sorted: 8464014, 8464118, 8464326, 8464378, 8464456

          GetCpuFrequency: 2166874 KHz

Press any key to continue ...

Well Microsoft, here's another nice mess you've gotten us into.

hutch--

This one works fine on my old i7.


QueryPerformanceFrequency: 00000000_0029B1CAh
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 0034080Bh
             dwPerfPeriod: 10674
             dwMultiplier: 256
                 Measured: 10931202, 10931220, 10931190, 10931190, 10931187
                   Sorted: 10931187, 10931190, 10931190, 10931202, 10931220

          GetCpuFrequency: 2798385 KHz

Press any key to continue ...

Siekmanski

QueryPerformanceFrequency: 00000000_00DA7A64h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 0034080Dh
             dwPerfPeriod: 55930
             dwMultiplier: 256
                 Measured: 13290343, 13289866, 13291558, 13290018, 13289183
                   Sorted: 13289183, 13289866, 13290018, 13290343, 13291558

          GetCpuFrequency: 3402225 KHz

Press any key to continue ...
Creative coders use backward thinking techniques as a strategy.

dedndave

thanks guys - would like to see Tim's machine(s) to make sure   :P

i see a couple places for improvement in accuracy, but the concept seems to be ok

Raistlin

QueryPerformanceFrequency: 00000000_002F9361h
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 0034080Dh
             dwPerfPeriod: 12179
             dwMultiplier: 256
                 Measured: 12472264, 12472320, 12472304, 12472120, 12472160
                   Sorted: 12472120, 12472160, 12472264, 12472304, 12472320

          GetCpuFrequency: 3192905 KHz

Press any key to continue ...


Intel Core i5 @ 3.2Ghz
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

TWell

AMD E450 1.65 GHz  :t
QueryPerformanceFrequency: 00000000_0018890Dh
            EFlags Toggle: 00240000h
                CPUID TSC: Supported
               RDTSC Test: Pass
          GetCpuidSupport: 00341B06h
             dwPerfPeriod: 6281
             dwMultiplier: 256
                 Measured: 6432714, 6432795, 6432741, 6432423, 6432765
                   Sorted: 6432423, 6432714, 6432741, 6432765, 6432795

          GetCpuFrequency: 1646785 KHz

dedndave

i updated the attachment at the top of the thread with the final version
it's pretty much like the one you guys just ran, with some accuracy improvements

no need to post results, unless there is some kind of problem   :biggrin:

thanks for all the help   :t