#!/fellow/monks.pl

I wrote a CPU benchmarking script (at http://www.massyn.net/?p=131) a few weeks back to compare system performance at home, with our big IBM AIX servers (just because I'm curious). I realized that using a "prime number" counter is probably not the best way to go, since primes are exponential, so the numbers being returned won't be entirely accurate.

Ok, regardless of that fact, what I did find very strange was that my cpu_bench.pl script performed much slower on a big IBM P690 Regatta (AIX 5.3) than it did on my AMD Athlon XP2600 (running XP Active State Perl 5.6).

Now here's my question : When writing a system performance script, what should I do / not do? It looks like the different versions of perl (between Windows & AIX) do things differently, or my code is just not optimized enough to handle different hardware layers. Maybe Perl just isn't the language to do this in...

What do you say, gentle monks? Have you done something similar? What can we use to determine system performance, both CPU and storage, the ability to compare my desktop with my enterprise server, to ensure I get the right level of service.

Thanks!

     |\/| _. _ _  ._
www. |  |(_|_>_>\/| | .net
                /
The more I learn the more I realise I don't know.
- Albert Einstein

In reply to System Performance by Massyn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.