- or download this
micha@laptop ~/prog/perl/test $ time ./threads_benchmark.pl
...
sys 0m0.172s
(resident memory 6.3MB)
- or download this
#!/usr/bin/perl -w
...
threadpool_shutdown();
print "Exiting now, threads working: ",threadpool_threadsworking,"\n";
- or download this
micha@laptop ~/prog/perl/test $ time ./threadpool.pl
...
sys 0m0.024s
(max res memory indefinite rising, 10MB)
- or download this
#!/usr/bin/perl -w
...
$t->join();
}
$_->join for @threads;
- or download this
micha@laptop ~/prog/perl/test $ time ./thread_pool_benchmark.pl
...
sys 0m0.048s
15M res memory
- or download this
#!/usr/bin/perl -w
...
$p->shutdown();