私はいくつかのコードを持っています:
for my $t (1..$threads) {
push @threads, threads->create(\&action_, $t);
}
for my $t (@threads) {
$t->join();
}
sub action_ {
while (@sites) {
my $url = shift @sites;
for my $data1 (@data) {
for my $data2 (@data2) {
something($url, $data1, $data2);
}
}
}
}
1秒(または1分)あたりの速度(メソッド「何か」の呼び出し数)を取得するにはどうすればよいですか? ありがとう。