Help for this page

Select Code to Download


  1. or download this
    $ diff hobo_test.pl threads_test.pl
    
    ...
    > threads->create(\&foo, $_) for @names;
    > $_->join() for threads->list();
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    printf {*STDERR} "duration: %0.03f seconds\n", time - $start;
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    printf {*STDERR} "duration: %0.03f seconds\n", time - $start;
    
  4. or download this
    # Mac OS X ( Perl v5.18.2 )
    
    ...
    duration:  3.020 seconds
       50000
    
  5. or download this
    # Windows ( Cygwin Perl v5.22.3 )
    
    ...
    $ perl foo4.pl > nul        # Thread::Queue
    duration:  2.886 seconds
    
  6. or download this
    # TrueOS 10.0 ( FreeBSD, Perl 5.16.3 )
    
    ...
    duration:  1.822 seconds
       50000