Processors
Intel® Processors, Tools, and Utilities
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
13155 Discussions

Performance comparison between Core i7-6900k and @Core i9-9900x using the following C ++ code.

SMoai1
Beginner
353 Views

Performance comparison between Core i7-6900k and @Core i9-9900x using the following C ++ code.

 Source code:

void Function (BYTE * pdst, BYTE * psrc, BYTE dbit, BYTE sbit, int width, int height)

{

    INT_PTR i;

    INT_PTR size;

    size = (INT_PTR) width * height;

    for (i = 0; i <size; i)

    {

        if (* (psrc i) & sbit)

            * (pdst i) | = dbit;

    }

}

Compiler: VisualStudio 2010 64bit

result:

PC1: i7-6900k Measurement value: 125ms

PC2: i9-9900x Measurement value: 225ms

Although PC2 has higher CPU specifications, it takes longer than PC1 and I am wondering. Why does it look like this?

Thank you.

0 Kudos
5 Replies
AlHill
Super User
221 Views

Was this test done using the same motherboard, with the same memory and peripherals for both processors?

 

Doc

 

SMoai1
Beginner
221 Views

Thank you for your reply.

It is also different from motherboard, GPU and memory.

PC1: X99-E / WS                     NVIDIA1080     DDR4-2400 16GBx8

PC2: WS X299 PRO SAGE     NVIDIA2080s   DDR4-2666 16GBx8

AlHill
Super User
221 Views

Well, I would not support such a comparison, unless on identical platforms.

 

You can compare the two processors here:

https://ark.intel.com/content/www/us/en/ark/compare.html?productIds=189124,94196

 

Doc

 

SMoai1
Beginner
221 Views

 

The memory and the supported chipset are different between i7-6900k and i9-9900x, so the motherboard and memory are different, right? The same environment is impossible in the first place.

I guess that the two CPUs handle the code differently, but I want to know the clear difference.

AlHill
Super User
221 Views

if the chipsets and memory and motherboard are different, you are comparing apples and oranges.

That is the clear difference at this point.

Find a motherboard that supports both prcessors and test.

 

Doc

Reply