Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Rosetta Code: Long List is Long (Test File Generators)

by eyepopslikeamosquito (Archbishop)
on Dec 09, 2022 at 09:09 UTC ( [id://11148681]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # gen-long-llil.pl
    # Crude program to generate a LLiL test file with long names and count
    +s
    ...
    print "generating short long test file '$outfile' with count '$count'\
    +n";
    create_long_test_file( $outfile, $count );
    print "file size=", -s $outfile, "\n";
    
  2. or download this
    > perl gen-long-llil.pl long1.txt 600
    generating short long test file 'long1.txt' with count '600'
    ...
    > perl gen-long-llil.pl long3.txt 600
    generating short long test file 'long3.txt' with count '600'
    file size=65616000
    
  3. or download this
    > perl llil2d.pl big1.txt big2.txt big3.txt long1.txt long2.txt long3.
    +txt >perl2.tmp
    llil2d start
    ...
    total          : 11 secs
    
    > diff cpp2.tmp perl2.tmp
    
  4. or download this
    # gen-llil.pl
    # Crude program to generate a big LLiL test file to use in benchmarks
    ...
    print "generating test file '$outfile' with count '$count' (binmode=$f
    +bin)\n";
    create_test_file($outfile, $count, $wordlen, $fbin);
    print "file size=", -s $outfile, "\n";
    
  5. or download this
    # gen-long-llil.pl
    # Crude program to generate a LLiL test file with long names and count
    +s
    ...
    print "generating short long test file '$outfile' with count '$count' 
    +(binmode=$fbin)\n";
    create_long_test_file( $outfile, $count, $fbin );
    print "file size=", -s $outfile, "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found