8 $cmd = file_get_contents("/proc/self/cmdline");
9 $cmd = str_replace("\000", " ", $cmd);
10 $start = microtime(true);
12 echo "Starting $num procs\n";
16 $handles[] = proc_open($cmd." $i", array(), $pipes);
19 foreach ($handles as $i => $handle) {
20 $status = proc_get_status($handle);
21 if (!$status['running']) {
27 echo "Done $num procs\n";
28 return microtime(true) - $start;
30 if (count($argv) > 1) {
36 echo $x10 * 20 < $x200 ?
"Failed" : "Passed", "\n";