Page MenuHomePhabricator

Simple test of RPC performance from PHP

Authored By
Joe
Oct 5 2020, 9:37 AM
Size
386 B
Referenced Files
None
Subscribers
None

Simple test of RPC performance from PHP

<?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";

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8581703
Default Alt Text
Simple test of RPC performance from PHP (386 B)

Event Timeline