Help for this page

Select Code to Download


  1. or download this
    perl -we 'use Time::HiRes "time"; %a = map rand, 1 .. (1<<18); %b = ma
    +p rand, 1 .. (1<<18); warn($t = time()); %a = (%a, %b); warn time() -
    + $t; warn 0+keys(%a);'
    
  2. or download this
    perl -we 'use Time::HiRes "time"; %a = map rand, 1 .. (1<<18); %b = ma
    +p rand, 1 .. (1<<18); warn($t = time()); @a{keys %b} = values %b; war
    +n time() - $t; warn 0+keys(%a);'