Help for this page

Select Code to Download


  1. or download this
    C:\test>timeit \perl64\bin\perl.exe -nle1 1GB.dat
    Took: 9.687471720 seconds
    ...
    
    C:\test>timeit \perl64\bin\perl.exe -nle1 1GB.dat
    Took: 9.708372520 seconds
    
  2. or download this
    C:\test>timeit \perl64\bin\perl.exe -nle\"/\*/ and ++$c }{ print $c\" 
    +1GB.dat
    10217571
    ...
    C:\test>timeit \perl64\bin\perl.exe -nle\"/\*/ and ++$c }{ print $c\" 
    +1GB.dat
    10217571
    Took: 12.128623440 seconds