Help for this page

Select Code to Download


  1. or download this
    time perl -le'print "a"x1024 for 1..100_000' > 1kLines.txt
    time perl -pe's/a/A/g' 1kLines.txt > output.cmp
    time perl bukQueue.pl 1kLines.txt > output.tmp
    diff -sq output.cmp output.tmp
    
  2. or download this
    time perl -le'print "z"x1024 for 1..100_000' > 1kLines.txt
    
  3. or download this
    time perl -le'print "a"x1024 for 1..100_000' > 1kLines.txt
    real      0m00.685s
    ...
    cpu       1m37.294s
    diff -sq output.cmp output.tmp
    Files output.cmp and output.tmp differ