Re: [Freeswitch-users] Response time of ESL interface has increased a great deal from version 1.2 to 1.3.2
Did you read my response on the jira.freeswitch.org issue? /Peter James Bravo <james.bravo@redmatter.com> skrev: 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 !DSPAM:50a6775532767648055020!
participants (1)
-
Peter Olsson