OT: recommended way of timing two pieces of code in C

Ranjan Maitra maitra.mbox.ignored at inbox.com
Fri Feb 26 14:31:07 UTC 2016


Hi,

Disclaimer: This is clearly marked OT, with the only connection to this group being the fact that I am running F23 on a 20-core Dell T5810 @3.1 GHz each and 64 GiB memory. My OT queries over the past 13 years (almost) here have elicited great wealth of information so I am posing here.

So, I am trying to compare two kinds of methods in a C program. Both are written as efficiently as possible (assumed because no point otherwise). I would like to know which of these is more efficient. I have been using get_rusage but I was wondering whether there is a better way?

Separately, is there a way to get the number of floating point instructions in C? Both FLOPS and MIPS? 

Many thanks and best wishes,
Ranjan

-- 
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!




More information about the users mailing list