3 * This come from r75429 message
7 require_once( dirname( __FILE__ ) . '/Benchmarker.php' );
8 class bench_HTTP_HTTPS extends Benchmarker {
10 public function __construct() {
11 parent::__construct();
14 public function execute() {
16 array( 'function' => array( $this, 'getHTTP' ) ),
17 array( 'function' => array( $this, 'getHTTPS' ) ),
19 print $this->getFormattedResults();
22 static function doRequest( $proto ) {
23 Http::get( "$proto://localhost/" );
28 $this->doRequest( 'http' );
33 $this->doRequest( 'https' );
37 $maintClass = 'bench_HTTP_HTTPS';
38 require_once( RUN_MAINTENANCE_IF_MAIN );