Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Just another Perl shrine
 
PerlMonks  

Re^2: The arbitrary operator maker

by jimt (Chaplain)
on Nov 22, 2006 at 20:44 UTC ( #585607=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $op = '+';
    ...
    multi_add 5 elements:  2 wallclock secs ( 2.52 usr +  0.01 sys =  2.53
    + CPU) @ 395256.92/s (n=1000000)
        reduce:  4 wallclock secs ( 3.24 usr +  0.01 sys =  3.25 CPU) @ 30
    +7692.31/s (n=1000000)
    
  2. or download this
    my $op = '+';
    my $add_500_things = arbitrary_operator_maker($op, 500);
    ...
    multi_add 5 elements:  0 wallclock secs ( 1.03 usr +  0.00 sys =  1.03
    + CPU) @ 9708.74/s (n=10000)
        reduce:  1 wallclock secs ( 1.18 usr +  0.00 sys =  1.18 CPU) @ 84
    +74.58/s (n=10000)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://585607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-04-20 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls