And, with ikegami's test code, run on Ubuntu with perl, v5.8.7 built for i486-linux-gnu-thread-multi (with 1 registered patch...), there's significant variation with variance of x:
our $line = ('a' x 5500) . ' ' . ('a' x 120);
ww@GIG:~/pl_test$ perl 674979.pl</p>
Rate class_nodot class literal
class_nodot 242/s -- -30% -100%
class 344/s 42% -- -100%
literal 106283/s 43872% 30824% --
whereas, with ikegami's original, our $line = ('a' x 500) . ' ' . ('a' x 20);
ww@GIG:~/pl_test$ perl 674979.pl
Rate class_nodot class literal
class_nodot 2647/s -- -30% -100%
class 3793/s 43% -- -99%
literal 672122/s 25292% 17620% --
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.