473,326 Members | 2,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to compare algorithms in linux

I want to compare the performance of two algorithm. How do I do this on

linux. In matlab we have flops command for this purpose, is their any
such command or does any body have a script which would help me do so
in linux.

May 6 '06 #1
6 1758
ka****@gmail.com wrote:
I want to compare the performance of two algorithm. How do I do this on
linux.

By asking in a Linux group?

--
Ian Collins.
May 6 '06 #2
Try

info time

May 6 '06 #3

ka****@gmail.com wrote:
I want to compare the performance of two algorithm. How do I do this on

linux. In matlab we have flops command for this purpose, is their any
such command or does any body have a script which would help me do so
in linux.


At the risk of going off topic....

I asked something similar on comp.programming. This thread might help
you.

http://groups.google.com/group/comp....afd880/?hl=en#

May 6 '06 #4

ka****@gmail.com wrote:
I want to compare the performance of two algorithm. How do I do this on

linux. In matlab we have flops command for this purpose, is their any
such command or does any body have a script which would help me do so
in linux.


At the risk of going off topic....

I asked a similar question on comp.programming. This thread might help
you.

http://groups.google.com/group/comp....afd880/?hl=en#

May 6 '06 #5
el***@cmbi.ru.nl wrote:
Try

info time


Try:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
and then:
<http://cfaj.freeshell.org/google/>

Robert Gamble

May 6 '06 #6
<ka****@gmail.com> wrote
I want to compare the performance of two algorithm. How do I do this on

linux. In matlab we have flops command for this purpose, is their any
such command or does any body have a script which would help me do so
in linux.

The question doesn't really have anything to do with linux.

When you compare two algorithms, there are many things you might want to
consider. Sometimes worst-case performace is the important thing, eg in an
animation where you don't want to drop a frame. Sometimes average
performance is more important, for instnace if you are running many
thousands of jobs in a batch. I can't think of a case where best
performance would be relevant.

Then you might be interested in the run time of the alorithm , or the
theoretical efficiency. For instance, your algorithm might need many disk
accesses on your particular machine, but run very quickly on a machine where
huge files are memory-mapped.

The thing to do is to analyse the algorithm, and then take metrics. If the
bottlneck is evaluating an exponential function, count how many times it is
called.
--
Visit my website http://www.personal.leeds.ac.uk/~bgy1mm
Lots of programming goodies.
May 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Qiangning Hong | last post by:
I want to make an app to help students study foreign language. I want the following function in it: The student reads a piece of text to the microphone. The software records it and compares it...
1
by: Nick Leeson | last post by:
I have two HTML files - call it file1.html and file2.html.Is there a utility in Linux that I can use to visually compare the difference between the two files.Please note that I need to display and...
2
by: Flzw | last post by:
I've been trying to use std::string::compare and apparently it is case sensitive, I searched the net but I can't find a way for it not to take case into account, the solution I have for now is...
17
by: Mark A | last post by:
DB2 8.2 for Linux, FP 10 (also performs the same on DB2 8.2 for Windoes, FP 11). Using the SAMPLE database, tables EMP and EMLOYEE. In the followng stored procedure, 2 NULL columns (COMM) are...
3
by: Le Minh | last post by:
Hi, i write a application to search in a tree. each treenode is a unicode text. How to compare two unicode string to find extract node i want ? Regards Minh
26
by: vlsidesign | last post by:
I am a newbie and going through "The C programming language" by Kernighan & Richie on my own time (I'm not a programmer but I want to learn because it can save me time in my normal job, and it is...
3
by: arnuld | last post by:
i am a beginner at algorithms. i was checking ACCU and this one caught my attention: "Introduction to Computing and Algorithms" -- Russell Shackelford had anybody read this book ? i want...
10
by: Thomas Dybdahl Ahle | last post by:
Hi, I'm writing a program with a large data stream to which modules can connect using regular expressions. Now I'd like to not have to test all expressions every time I get a line, as most of...
1
by: Peter Morris | last post by:
I wasn't expecting this... (Time in MS) Linq 858 Sort 9721 Dict 316 Linq - Sort = -8863 Linq - Dict = 542 I was originally writing something like the dictionary one but then I
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.