mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-19 05:03:34 +00:00
16 lines
325 B
PHP
16 lines
325 B
PHP
<?php
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use Curl\MultiCurl;
|
|
|
|
$multi_curl = new MultiCurl();
|
|
|
|
for ($i = 0; $i < 10; $i++) {
|
|
for ($j = 0; $j <= 500; $j++) {
|
|
$multi_curl->addGet('http://127.0.0.1:8000/');
|
|
}
|
|
$multi_curl->start();
|
|
echo 'memory ' . $i . ': ' . memory_get_usage(true) . "\n";
|
|
}
|