Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: schwartzian transform problem - Solved

by Anonymous Monk
on Mar 25, 2025 at 09:20 UTC ( [id://11164410]=note: print w/replies, xml ) Need Help??


in reply to schwartzian transform problem - Solved

strawberry-perl-5.16.3.1-64bit-portable @ 46.90/s strawberry-perl-5.18.4.1-64bit-portable @ 45.66/s strawberry-perl-5.20.3.3-64bit-portable @ 42.60/s strawberry-perl-5.22.3.1-64bit-portable @ 45.56/s strawberry-perl-5.26.3.1-64bit-portable @ 52.31/s strawberry-perl-5.28.2.1-64bit-portable @ 50.53/s strawberry-perl-5.30.2.1-64bit-portable @ 49.05/s strawberry-perl-5.32.1.1-64bit-PDL @ 47.72/s strawberry-perl-5.38.0.1-64bit-PDL @ 43.94/s strawberry-perl-5.40.0.1-64bit-PDL @ 41.68/s

FWIW, I benchmarked the solutions + my own, then feeling guilty of still sitting with 5.32, re-ran under 5.40, got ~25% speed drop; though it's less (above is a collage of dir/b + script output) for simplified test below. Isn't it too much?

use strict; use warnings; use Benchmark 'timethis'; my $s = do { local $/; <DATA> }; $s x= 10_000; timethis -5, sub { my @a = split /^(?=>>> )/m, $s; return }, $^V; __DATA__ >>> prd1701 Filesystem Size Used Avail Use% Moun +ted on /workspace 3.9T 887G 3.0T 13% /wor +kspace/data >>> prd1702 Filesystem Size Used Avail Use% Moun +ted on /workspace 3.9T 746G 3.1T 23% /wor +kspace/data >>> prd1703 Filesystem Size Used Avail Use% Moun +ted on /workspace 3.9T 687G 3.2T 18% /wor +kspace/data

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2025-05-21 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.