Help for this page

Select Code to Download


  1. or download this
    #define CMP( callback, aa, bb ) \
    ( ( GvSV( a ) = ( aa ) ), ( GvSV( b ) = ( bb ) ), CmpAB( callback ) )
    ...
        Safefree( topN );
        Inline_Stack_Done;
    }
    
  2. or download this
    P:\test>topn -MAX=10000 -N=10
      1 trial  of     sort [10 of 10000] ( 17.186ms total), 17.186/trial
    ...
      1 trial  of topNbsAB [100 of 100000] (143.079ms total), 143.07/trial
    
      1 trial  of  topNbs@ [100 of 100000] (187.500ms total), 187.50/trial
    
  3. or download this
    P:\test>topn -MAX=100000 -N=1000
    [SNIP]
    ...
      1 trial  of topNbsAB [1000 of 100000] (298.991ms total), 298.99/tria
    +l
    
      1 trial  of  topNbs@ [1000 of 100000] (296.875ms total), 296.87/tria
    +l
    
  4. or download this
      1 trial  of     sort [10000 of 1000000] (   3.156s total), 3.156s/tr
    +ial
    
      1 trial  of topNbsAB [10000 of 1000000] (  13.641s total), 13.641/tr
    +ial
    
      1 trial  of  topNbs@ [10000 of 1000000] (   4.734s total), 4.734s/tr
    +ial