Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
My comment was, and I quote:
I suggest you try this benchmark by at least mimicking a real application, by e.g. adding a use Moose to your program. The problem with Perl 5 ithreads is not in tests like this. The problem is in real applications that set up a lot of data structures that need to be copied to all 3000 threads in your example. And whose memory will not be shared. I bet it will run a tad over 2 GB by just adding use Moose.

My suggestion was to add a use Moose (and nothing else) to your benchmark program, so that it would be closer to a real world benchmark.

That's like responding to being challenged to a race by a guy in a Ferrari, by accepting on the basis that he tow a U-Haul trailer full of kitchen sinks.

I'm glad for you that you are part of the jet-set that only needs to deal with Ferraris. I think most Perl 5 programmers have to deal with U-Haul trailers full of kitchen sinks every single day of their working life. And thus I felt that adding a use Moose to your benchmark, would add a touch of reality for them.

By the way, the use of that Ferrari is officially discouraged as it may be taken off the market:

From time to time, we may mark language constructs and features which we consider to have been mistakes as discouraged. Discouraged features aren't currently candidates for removal, but we may later deprecate them if they're found to stand in the way of a significant improvement to the Perl core.

Looks to me you didn't examine all that I said. Or simple preferred not to react to this point. FWIW, telling people to use features of Perl 5 that you know may be removed in the future, does not feel right to me. Regardless of whether they're shiny red or not.


In reply to Re^11: It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer? by liz
in thread It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer? by martin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-16 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found