Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P12919
Simple test of RPC performance from PHP
Active
Public
Actions
Authored by
Joe
on Oct 5 2020, 9:37 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
<?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
Joe
created this paste.
Oct 5 2020, 9:37 AM
2020-10-05 09:37:52 (UTC+0)
Log In to Comment