Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE: Schwartzian Transform vs. plain Perl

by jjhorner (Hermit)
on Jun 08, 2000 at 16:44 UTC ( [id://17065]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    map(($_,1), (1..10000));
    
  2. or download this
    [08:35:03 jhorner@gateway scripts]$ ./20000608-2.pl 
    Benchmark: timing 100000 iterations of a, b...
             a:  2 wallclock secs ( 1.49 usr +  0.00 sys =  1.49 CPU) @ 67
    +114.09/s (n=100000)
             b:  1 wallclock secs ( 1.64 usr +  0.00 sys =  1.64 CPU) @ 60
    +975.61/s (n=100000)
    [08:35:16 jhorner@gateway scripts]$
    
  3. or download this
    Benchmark: timing 1000000 iterations of a, b...
             a: 15 wallclock secs (14.67 usr +  0.01 sys = 14.68 CPU) @ 68
    +119.89/s (n=1000000)
             b: 16 wallclock secs (16.41 usr +  0.01 sys = 16.42 CPU) @ 60
    +901.34/s (n=1000000)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found