Expensive Operations

Started by
0 comments, last by UStink2Me 24 years, 5 months ago
How do you determine how expensive an operation is? Can someone list their expense (including integer and floating point). Also, what chips have dedicated floating point processors onboard? Does this change you answer, above? thanks
Advertisement
While it is possible to "count" the number of cycles a piece of code uses, it is both diffcult and inaccurate. Pipelining, cache and processor differences may make you measurements on one PC wildly inaccurate on another.

My best suggestion is to use a good profiler, and run it on as many platforms as you can get your hands on.

If you really want to get dirty, Intel has a tool the gets into the nitty gritty (VTune) + gives away processor docs for free (2-3 CDs full of it). That should keep you occupied for a while, or at least convince you to take another approach

/Niels

<b>/NJ</b>

This topic is closed to new replies.

Advertisement