<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Arial">Hi <br>
<br>
Just wondering if anyone else has experienced the following issue
with later Freeswitch.<br>
</font><br>
<span style="color: rgb(0, 0, 0); font-family: Arial, FreeSans,
Helvetica, sans-serif; font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 17px; orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;">Using a simple php
script (see below) to issue 20 ESL requests and display the
response <br>
times shows that the response time has increased from an average
of 0.002 secs per <br>
request for version 1.2 to 0.06 for version 1.3.2 .<br>
<br>
I've tried issuing requests to localhost, 127.0.0.1 and from other
hosts.<br>
The results are always much slowed for version 1.3.2 .<br>
<br>
The test php script is as follows:<br>
<br>
<?php<br>
require_once 'ESL.php';<br>
<br>
$host = "localhost";<br>
if ($argc >= 2)<br>
$host = $argv[1];<br>
<br>
$sockFSServer = new ESLconnection($host, '8021', 'ClueCon');<br>
<br>
function getTime() {<br>
list($usec, $sec) = explode(" ", microtime());<br>
return ((float)$usec + (float)$sec);<br>
}<br>
<br>
for($n=0; $n < 20; $n++) {<br>
$startTime = getTime();<br>
$res = $sockFSServer->sendRecv("api global_getvar
local_ip_v4");<br>
if (!$res)<br>
echo "request failed\n";<br>
else<br>
echo "Got reply '" . $res->getBody() . "'. Time
taken " . (getTime() - $startTime) . "\n";<br>
}<br>
<br>
<br>
<br>
cheers James Bravo<br>
<br>
</span>
</body>
</html>