Results 1 to 3 of 3

Thread: compare running time of two programs

  1. #1

    Default compare running time of two programs

    Can someone tell me how to compare running time of two programs in c/c++ and in other languages.I want to carry out a statistical analysis of various algos in various programming environments and different data sets

  2. #2
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    3,050
    Blog Entries
    1

    Default Re: compare running time of two programs

    Code:
    $ man 1 time

  3. #3
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    301

    Default Re: compare running time of two programs

    Hi,

    if you just want to compare the real running time time as already was suggested is the first start point. If you want to have a more complex analysis on how much time was spent in an function or how often a function gets called then you should use a profiler depending on the used programing language, e.g. you can have a look at valgrind (cachegrind) and gprov for c/c++ programms.

    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •