Help for this page

Select Code to Download


  1. or download this
                                   Xeon         AMD64
    single process, empty loop     420,000/s    360,000/s
    two processes, empty loop      330,000/s    220,000/s
    single process, gettimeofday   230,000/s    110,000/s
    two processes, gettimeofday    180,000/s    87,000/s
    
  2. or download this
    #!perl -slw
    use strict;
    ...
    my @forks = map{ if (my $pid=fork){waitpid(-1,WNOHANG)}elsif($pid==0){
    +thread()}else{die "Cannot fork"} } 1 .. 10;
    
    <STDIN>;
    
  3. or download this
                                   Xeon        AMD64
    single process, empty loop     865,000/s   550,000/s
    two processes, empty loop      845,000     525,000/s
    single process, gettimeofday   345,000     130,000/s
    two processes, gettimeofday    340,000     125,000/s