8 $cmd = file_get_contents("/proc/self/cmdline");
9 $cmd = str_replace("\000", " ", $cmd);
10 $start = microtime(true);
12 echo "Starting $num procs\n";
13 for ($i = 0; $i < $num; $i++
) {
14 $handles[] = proc_open($cmd." $i", array(), $pipes);
17 foreach ($handles as $i => $handle) {
18 $status = proc_get_status($handle);
19 if (!$status['running']) {
25 echo "Done $num procs\n";
26 return microtime(true) - $start;
29 if (count($argv) > 1) {
34 echo $x10 * 20 < $x200 ?
"Failed since $x10 * 20 < $x200" : "Passed", "\n";