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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.