Jump to content

You can't reliably measure the IPC of modern CPUs without very specific instruments, but you can make a relative estimate based on single core performance and clock speed. Just divide the first by the second.

 

As for how it affects programs, it depends on the program. In general, given the same clock speed and core count, a higher IPC cpu will be faster.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473684
Share on other sites

Link to post
Share on other sites

To measure ipc on a cpu you do a clock for clock/core for core test.  Whatever does better has better ipc if the application isn't poorly optimized for one cpu or the other.

Want to custom loop?  Ask me more if you are curious

 

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473686
Share on other sites

Link to post
Share on other sites

It stands for instructions per clock. Which is how much stuff can the CPU do on a given clock cycle.

 

There's no way to directly measure IPC. You can run some programs that'll test one aspect of a CPU to get an idea, but that won't be the actual value. The only way you can really measure it is indirectly by testing the CPU with a variety of benchmarks, then compare that to another CPU that also ran those same benchmarks.

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473688
Share on other sites

Link to post
Share on other sites

Just now, ashu1106 said:

I know what IPC stands for but I want to know that how it effects a cpu's performance in games and in other pro applications. And how to measure IPC of a CPU. 

Thanks.

IPC or instructions per clock, is a measurement of how many CPU instructions a CPU can do, on average, per clock cycle. The IPC of a processor is the small non-clock boosts to performance and for example a 20% boost in IPC would yield the same relative benefits as a 20% boost in clock speeds.

 

To measure it, you'd fix clock rate on your CPU so it doesn't change, create an application that does a number of basic computations, measure the time between these computations and use that to determine how many of these basic computations happened, on average, per clock cycle.

 

This number isn't particularly useful however since a processors IPC will vary by instruction, by code complexity, and by a large number of other factors. The best you can talk about is the relative IPC for a given workload.

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473693
Share on other sites

Link to post
Share on other sites

IPC = instruction per clock.

How much stuff a CPU can do per (G)Hz.

 

This unfortunately cannot easily be calculated, since it depends on how well the given program works with a CPU, so one program will give other IPC rating than others.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473697
Share on other sites

Link to post
Share on other sites

So if it is relative, tech reviewers always comment on a cpu's IPC in relative terms. Right?

Because I remember when ryzen was first launched almost every review praised it for it's higher IPC, but none of them told how much higher it is. 

Another thing, is IPC defined for per core or for CPU as a whole 

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473760
Share on other sites

Link to post
Share on other sites

IPC is a complicated topic. You can't pinpoint it as a specific number, because it varies. 

 

CPUs have many different units inside them to handle different workloads. For example, every modern CPU has ALUs and FPUs (for doing integer and floating point instructions). Some CPUs may have stronger ALUs, but weaker FPUs. Which would make their integer IPC very good, but their floating point IPC very bad.

 

As well, weird latency characteristic, such as those caused by the infinity fabric on Ryzen, could heavily affect performance in some scenarios that require low latency cross core communications, whereas other scenarios might not care at all.

 

For measuring IPC, usually people just take a ton of benchmarks and then find an average to determine IPC. There's not really a better way of doing it. And even if you do know the approximate IPC of a CPU, that can only give you a rough estimate of how it would perform in a given scenario since it varies. The best way, as always, is to check benchmarks.

2 minutes ago, ashu1106 said:

So if it is relative, tech reviewers always comment on a cpu's IPC in relative terms. Right?

Because I remember when ryzen was first launched almost every review praised it for it's higher IPC, but none of them told how much higher it is. 

Another thing, is IPC defined for per core or for CPU as a whole 

IPC can be measured as an absolute number. Of course, this number wouldn't re representative of all scenarios but it would be the approximate IPC of a cpu. Like for example, you could have a CPU with an IPC of 2 instructions per clock.

 

IPC can be defined for a whole cpu, but generally people only use it for measuring per core performance since then you could say a ryzen 8 core has higher ipc than a ryzen 4 core and then comparisons and stuff get super complicated.

Make sure to quote me or tag me when responding to me, or I might not know you replied! Examples:

 

Do this:

Quote

And make sure you do it by hitting the quote button at the bottom left of my post, and not the one inside the editor!

Or this:

@DocSwag

 

Buy whatever product is best for you, not what product is "best" for the market.

 

Interested in computer architecture? Still in middle or high school? P.M. me!

 

I love computer hardware and feel free to ask me anything about that (or phones). I especially like SSDs. But please do not ask me anything about Networking, programming, command line stuff, or any relatively hard software stuff. I know next to nothing about that.

 

Compooters:

Spoiler

Desktop:

Spoiler

CPU: i7 6700k, CPU Cooler: be quiet! Dark Rock Pro 3, Motherboard: MSI Z170a KRAIT GAMING, RAM: G.Skill Ripjaws 4 Series 4x4gb DDR4-2666 MHz, Storage: SanDisk SSD Plus 240gb + OCZ Vertex 180 480 GB + Western Digital Caviar Blue 1 TB 7200 RPM, Video Card: EVGA GTX 970 SSC, Case: Fractal Design Define S, Power Supply: Seasonic Focus+ Gold 650w Yay, Keyboard: Logitech G710+, Mouse: Logitech G502 Proteus Spectrum, Headphones: B&O H9i, Monitor: LG 29um67 (2560x1080 75hz freesync)

Home Server:

Spoiler

CPU: Pentium G4400, CPU Cooler: Stock, Motherboard: MSI h110l Pro Mini AC, RAM: Hyper X Fury DDR4 1x8gb 2133 MHz, Storage: PNY CS1311 120gb SSD + two Segate 4tb HDDs in RAID 1, Video Card: Does Intel Integrated Graphics count?, Case: Fractal Design Node 304, Power Supply: Seasonic 360w 80+ Gold, Keyboard+Mouse+Monitor: Does it matter?

Laptop (I use it for school):

Spoiler

Surface book 2 13" with an i7 8650u, 8gb RAM, 256 GB storage, and a GTX 1050

And if you're curious (or a stalker) I have a Just Black Pixel 2 XL 64gb

 

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473769
Share on other sites

Link to post
Share on other sites

3 minutes ago, Damascus said:

Ryzen has 40% better ipc than ads last cpus, the bulldozer and Co.  Architectures

52% actually, according to specINT

Make sure to quote me or tag me when responding to me, or I might not know you replied! Examples:

 

Do this:

Quote

And make sure you do it by hitting the quote button at the bottom left of my post, and not the one inside the editor!

Or this:

@DocSwag

 

Buy whatever product is best for you, not what product is "best" for the market.

 

Interested in computer architecture? Still in middle or high school? P.M. me!

 

I love computer hardware and feel free to ask me anything about that (or phones). I especially like SSDs. But please do not ask me anything about Networking, programming, command line stuff, or any relatively hard software stuff. I know next to nothing about that.

 

Compooters:

Spoiler

Desktop:

Spoiler

CPU: i7 6700k, CPU Cooler: be quiet! Dark Rock Pro 3, Motherboard: MSI Z170a KRAIT GAMING, RAM: G.Skill Ripjaws 4 Series 4x4gb DDR4-2666 MHz, Storage: SanDisk SSD Plus 240gb + OCZ Vertex 180 480 GB + Western Digital Caviar Blue 1 TB 7200 RPM, Video Card: EVGA GTX 970 SSC, Case: Fractal Design Define S, Power Supply: Seasonic Focus+ Gold 650w Yay, Keyboard: Logitech G710+, Mouse: Logitech G502 Proteus Spectrum, Headphones: B&O H9i, Monitor: LG 29um67 (2560x1080 75hz freesync)

Home Server:

Spoiler

CPU: Pentium G4400, CPU Cooler: Stock, Motherboard: MSI h110l Pro Mini AC, RAM: Hyper X Fury DDR4 1x8gb 2133 MHz, Storage: PNY CS1311 120gb SSD + two Segate 4tb HDDs in RAID 1, Video Card: Does Intel Integrated Graphics count?, Case: Fractal Design Node 304, Power Supply: Seasonic 360w 80+ Gold, Keyboard+Mouse+Monitor: Does it matter?

Laptop (I use it for school):

Spoiler

Surface book 2 13" with an i7 8650u, 8gb RAM, 256 GB storage, and a GTX 1050

And if you're curious (or a stalker) I have a Just Black Pixel 2 XL 64gb

 

Link to comment
https://linustechtips.com/topic/838682-what-is-ipc/#findComment-10473807
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×