V
V
vldud2018-04-24 13:41:17
PHP
vldud, 2018-04-24 13:41:17

What is the fastest way to generate a page hit in php?

Good afternoon. There is a task - to quickly generate hits on a large volume of pages. Implementation language - php. View code:

foreach ($pages as $page){
  $ch = curl_init();
  curl_setopt(
    $ch, 
    CURLOPT_URL, 
    $page
  );
  curl_exec($ch);
  curl_close($ch);
}

not working fast enough.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Arkhipov, 2018-04-24
@vldud

I think PHP has nothing to do with it, most likely a network delay. But you can try apache benchmark .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question