Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F32374113
Simple test of RPC performance from PHP
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Joe
Oct 5 2020, 9:37 AM
2020-10-05 09:37:52 (UTC+0)
Size
386 B
Referenced Files
None
Subscribers
None
Simple test of RPC performance from PHP
View Options
<?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
Details
Attached
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)
Attached To
Mode
P12919 Simple test of RPC performance from PHP
Attached
Detach File
Event Timeline
Log In to Comment