Page MenuHomePhabricator
Paste P12919

Simple test of RPC performance from PHP
ActivePublic

Authored by Joe on Oct 5 2020, 9:37 AM.
<?php
switch ($_GET['test_type']) {
case "envoy":
$addr = "http://localhost:6202/";
break;
case "http":
$addr = "http://search.svc.codfw.wmnet:9200/";
break;
default:
$addr = "https://search.svc.codfw.wmnet:9243/";
}
$ch = curl_init($addr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch);
$time = curl_getinfo($ch, CURLINFO_TOTAL_TIME);
echo $time . "\n";

Event Timeline