I recall hearing things like a 15% slowdown for using threads and nothing close to 50% as well. Here is the simple wc.pl script used and timings for 5.6.1(no-threads) and 5.8.0(threaded).
############ # here's a real wc on the data.txt file $ wc data.txt 208048 1675832 11021496 data.txt ############ # here's the test wc.pl script $ cat wc.pl #!/usr/bin/perl -w use strict; my $total = @ARGV > 1; my($lines, $words, $bytes); while(<>){ my @words = split; $words += @words; $bytes += length; $lines++; } printf "%7d %7d %7d %s\n",$lines,$words,$bytes,$ARGV; ############ # here's results for 5.6.1 no-threads in /usr/bin/perl $ /usr/bin/perl -v This is perl, v5.6.1 built for i686-linux $ time /usr/bin/perl wc.pl data.txt 208048 1675832 11021496 data.txt real 0m7.220s user 0m7.030s sys 0m0.080s ############ # here's results for 5.8.0 threaded in /usr/local/bin/perl $ /usr/local/bin/perl -v This is perl, v5.8.0 built for i686-linux-thread-multi $ time /usr/local/bin/perl wc.pl data.txt 208048 1675832 11021496 data.txt real 0m15.591s user 0m15.350s sys 0m0.130s

For 5.8.0 non-threaded but with 64-bit integer support the above ran at 9.2 seconds (circa 20% slower).


In reply to Re: Re: relative speed of 5.8.0 by Anonymous Monk
in thread relative speed of 5.8.0 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.