Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Rosetta Code: Long List is Long -- Python

by parv (Parson)
on Dec 02, 2022 at 10:26 UTC ( [id://11148494]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    llil start
    get_properties : 44 secs
    sort + output  : 429 secs
    total          : 473 secs
    
  2. or download this
    start
    get properties: 60 secs
    sort + output: 63 secs
    total: 123 secs
    
  3. or download this
    # Manually rounded off after posting.
    collect time : 37.6 s
    ...
    total processing time : 152.7 s
    output time : 22.0 s
    total time : 174.7 s
    
  4. or download this
    #!/usr/local/bin/python3.10
    
    ...
    for label, time_taken in time_stat.items():
       sys.stderr.write( f'{label:{label_width}}: {time_taken:{time_width}
    +{round_format}} s\n' )
    
  5. or download this
    @@ -98,20 +98,20 @@
        """
    ...
    -   sys.stderr.write( f'{label} : {time_taken:0.1f}\n' )
    +   sys.stderr.write( f'{label:{label_width}}: {time_taken:{time_width
    +}{round_format}} s\n' )
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found