Newer
Older
Php-rpc / src / make-ipc.php
<?php

include "sysVcom.php";
include "time.php";

/*
//test a msg larger than queue size
$data = '';
$cnt = 1;
for( $i=0; $i<$g_max_chan; $i++){
	$data .= $i;
}*/

$data = 'myFunc,p1,p2';
$cnt = 50000;

$st_time = (float)getTimeAsString(1733051170);
for( $i=0; $i<$cnt; $i++){
	$rtn = IPC( $data );
}
$en_time = (float)getTimeAsString(1733051170);

echo "done\n\n";
echo (($en_time-$st_time)/$cnt) . "\n\n";

// timed on a laptop (1.9GHz, 2-core, 4-threads) at 21uS per IPC call-return

?>