Hi
Just wondering if anyone else has experienced the following issue
with later Freeswitch.
Using a simple php
script (see below) to issue 20 ESL requests and display the
response
times shows that the response time has increased from an average
of 0.002 secs per
request for version 1.2 to 0.06 for version 1.3.2 .
I've tried issuing requests to localhost, 127.0.0.1 and from other
hosts.
The results are always much slowed for version 1.3.2 .
The test php script is as follows:
<?php
require_once 'ESL.php';
$host = "localhost";
if ($argc >= 2)
$host = $argv[1];
$sockFSServer = new ESLconnection($host, '8021', 'ClueCon');
function getTime() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
for($n=0; $n < 20; $n++) {
$startTime = getTime();
$res = $sockFSServer->sendRecv("api global_getvar
local_ip_v4");
if (!$res)
echo "request failed\n";
else
echo "Got reply '" . $res->getBody() . "'. Time
taken " . (getTime() - $startTime) . "\n";
}
cheers James Bravo