Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: (Golf) RNA Genetic Code Translator

by tadman (Prior)
on Jul 09, 2001 at 22:13 UTC ( [id://95079]=note: print w/replies, xml ) Need Help??


in reply to Re: (Golf) RNA Genetic Code Translator
in thread (Golf) RNA Genetic Code Translator

I think MeowChow's would be nearly as fast, except that for reasons of brevity it performs this crazy map operation on every base-pair triplet substitution.

On this train of thought, is there such as thing as a Benchmark-type routine that will test performance on a variety of data sizes? So many times people benchmark a variety of routines with only one set of data, which has the result of being a 1-dimensional test where there are actually 2 independent variables (function and data set size).

In line with Big-O Notation, is it possible and/or has someone written a Benchmark-type module which would estimate what kind of O(f(n)) function would best represent how the algorithm in question scales? Certainly not trivial by any means, but not impossible either.
  • Comment on Re^2: (Golf) RNA Genetic Code Translator

Replies are listed 'Best First'.
Re: Re^2: (Golf) RNA Genetic Code Translator
by scain (Curate) on Jul 09, 2001 at 22:29 UTC
    This is not exactly what you asked for, but it would be easy to place several sequences in the __DATA__ chunk, one to a line, and since the timethis is in a while loop, it will iterate over each seqence. If you wanted to be really anal, you could then pipe the output to another perl program to parse and do statistics.

    Scott

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-23 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found