More anecdotal data, with a one-liner test:


Activestate Perl 5.10.0 on XP+SP2:

>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread [snip] Binary build 1004 [287188] provided by ActiveState http://www.ActiveSt +ate.com Built Sep 3 2008 13:16:37 [snip] >perl -MBenchmark -lwe "my$x=q//; print timestr(timeit(eval($ARGV[0]), +sub{$x .= (q/x/ x 1000);}));" 10_000 64 wallclock secs (37.05 usr + 25.88 sys = 62.92 CPU) @ 158.93/s (n=10 +000)
(100,000 was obviously taking forever, so I skipped it.)


Cygwin Perl 5.10.0 on the same system:

# perl -v This is perl, v5.10.0 built for cygwin-thread-multi-64int [snip] # perl -MBenchmark -lwe 'my$x=q//; print timestr(timeit(eval($ARGV[0]) +,sub{$x .= (q/x/ x 1000);}));' 10_000 1 wallclock secs ( 0.06 usr + 0.00 sys = 0.06 CPU) @ 158730.16/s (n +=10000) # perl -MBenchmark -lwe 'my$x=q//; print timestr(timeit(eval($ARGV[0] +),sub{$x .= (q/x/ x 1000);}));' 100_000 1 wallclock secs ( 0.61 usr + 0.03 sys = 0.64 CPU) @ 156006.24/s (n +=100000)


In reply to Re: Why is Windows 100 times slower than Linux when growing a large scalar? by Anonymous Monk
in thread Why is Windows 100 times slower than Linux when growing a large scalar? by Anonymous Monk

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.