Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: exec, system, or backticks

by perlcapt (Pilgrim)
on Oct 20, 2004 at 20:01 UTC ( #400970=note: print w/ replies, xml ) Need Help??


in reply to Re^4: exec, system, or backticks
in thread exec, system, or backticks

Benchmarking (in computing field) has mostly to do with performance comparisons. There is a whole suite of perl modules Benchmark and Benchmark::Harness, neither of which have I used. I did work for several years on Spec95 Benchmarks and at the BYTE Magazine Lab. I don't know if you are looking for performance evaluation, but if you are, I'm passing on these experiences:

  • Perl is great "harness" for doing benchmarks. The SPEC 95 benchmarks are all (and there are many) run from a quite sophisticated Perl testing application. The BYTE Unix benchmarks (which have survived longer than the actual magazine) were writen prior to Perl, had a harness using various UNIX utilities, all of which are part of Perl. I believe they were eventually migrated to a Perl "harness."
  • The forking of a new processes is a significant part of the starting of an application or test. One very good way to test an application that doesn't include the desireable: is to use the system time (1) command/utility.

In this later case, I would use a Perl invocation like this:

my $results = system("time $program_to_time");
And parse the results.

Not sure if any of this is of any interest to you. If so, I'll dig up what I can. -ben

P.S., Those SPEC95 benchmarks were a real pain, from which I learned: a whole lot about Perl and the fundemetal difference between UNIX and VMS.


Comment on Re^5: exec, system, or backticks
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-30 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls