-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
30 lines (24 loc) · 842 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require __DIR__.'/vendor/autoload.php';
use Demo\SingleCurl;
use Demo\MultiCurl;
$urls = [
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
'https://api.genderize.io?name=anil',
];
echo "SIMPLE START : " . date('H:i:s') . PHP_EOL;
$sresponse = SingleCurl::process($urls);
echo "SIMPLE END : " . date('H:i:s') . PHP_EOL;
echo "MULTI START : " . date('H:i:s') . PHP_EOL;
$mresponse = MultiCurl::process($urls);
echo "MULTI END : " . date('H:i:s') . PHP_EOL;
print_r($sresponse);
print_r($mresponse);