Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Tool for testing exactly the performance of program / algorithm

performance testing tools algorithms

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 AamirYousafi

AamirYousafi

    CC Lurker

  • New Member
  • Pip
  • 4 posts

Posted 13 August 2016 - 03:43 AM

With today's modern computers, for novice programmers who write mostly small programs, it's not possible to tell which program / algorithm performs better. Is there a tool that measures CPU load and memory load and other performance metrics of a particular program in Windows (an .exe file, an application)? Since my small programs don't eat up much power relative to Windows' own processes or any of my computer's programs, I can't use Task Manager for this.

Essentially, in the short term, this will be useful only for my algorithms as I typically write ones that are a bit unusual and may have different performance (time and memory) than the standard algorithm of that type. In the long term, a program like this would be immensely useful, one that specifies exactly how many bytes of RAM were used by the program, how many commands the CPU ran, how much time it took, etc.



#2 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts

Posted 28 August 2016 - 10:30 PM

Do you have the source code for these programs? If so, you can recompile them with profiling enabled (assuming you're using gcc or g++). Valgrind is a great tool for this.


sudo rm -rf / && echo $'Sanitize your inputs!'