Here ay go:

Benchmark: timing 1000000 iterations of Grep, Max, Ternary... Grep: 6 wallclock secs (5.63 usr + 0.00 sys = 5.63 CPU) @ 177619.8 +9/s (n=1000000) Max: 9 wallclock secs (9.34 usr + 0.00 sys = 9.34 CPU) @ 107066.3 +8/s (n=1000000) Ternary: 10 wallclock secs (9.61 usr + 0.00 sys = 9.61 CPU) @ 104058.2 +7/s (n=1000000)

SysInfo + Perl

System Configuration: Sun Microsystems sun4u Sun Ultra 5/10 UPA/PCI +(UltraSPARC-IIi 400MHz) System clock frequency: 100 MHz Memory size: 256 Megabytes ========================= CPUs ========================= Run Ecache CPU CPU Brd CPU Module MHz MB Impl. Mask --- --- ------- ----- ------ ------ ---- 0 0 0 400 2.0 12 9.1 ========================= IO Cards ========================= Bus# Freq Brd Type MHz Slot Name Model --- ---- ---- ---- -------------------------------- ------------- +--------- 0 PCI-1 33 1 ebus 0 PCI-1 33 1 network-SUNW,hme 0 PCI-1 33 2 SUNW,m64B ATY,GT-C 0 PCI-1 33 3 ide-pci1095,646 0 PCI-2 33 2 scsi-glm Symbios,53C87 +5 0 PCI-2 33 2 scsi-glm Symbios,53C87 +5 0 PCI-2 33 3 pci108e,5043-pci108e,5043 No failures found in System =========================== ========================= HW Revisions ========================= ASIC Revisions: --------------- Cheerio: ebus Rev 1 System PROM revisions: ---------------------- OBP 3.25.3 2000/06/29 14:12 POST 3.1.0 2000/06/27 13:56 [jconner@kwan ~]$ perl -v This is perl, v5.6.0 built for sun4-solaris </clip> [jconner@kwan ~]$ uname -a SunOS kwan 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-5_10

----------
- Jim


In reply to Re: RE: Algorithm Efficiency vs. Specialized Hardware? by snafu
in thread Algorithm Efficiency vs. Specialized Hardware? by Russ

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.