ab -n 100000 -c 100 -k http://127.0.0.1:1337/
Server Software:
Server Hostname: 127.0.0.1
Server Port: 1337
Document Path: /
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Worker extends \Worker { | |
function run() { | |
// &$this ref required to avoid segfault | |
register_shutdown_function([&$this, 'onShutdown']); | |
} | |
private function onShutdown() { |
For many PHP devs, their first experience with HTTP request parameters comes in the form
of the $_GET
and $_POST
superglobals. These globally accessible arrays are an easily
digestable abstraction of the HTTP spec. Indeed, for basic applications operating only in
the context of common browser user-agents, these eminently accessible parameter collections
work well.
But there are some significant problems with $_GET
and $_POST
under the surface:
NewerOlder