php-sqlsrv/test/Performance/benchmark/sqlsrv/SqlsrvConnectionBench.php

17 lines
362 B
PHP
Raw Normal View History

2017-05-06 02:32:09 +02:00
<?php
use SqlsrvPerfTest\SqlsrvUtil;
2017-08-23 01:15:33 +02:00
include_once __DIR__ . "/../../lib/CRUDBaseBenchmark.php";
class SqlsrvConnectionBench extends CRUDBaseBenchmark
{
2017-05-06 02:32:09 +02:00
/*
* Opens a connection and closes it immediately
*/
2017-08-23 01:15:33 +02:00
public function benchConnectAndDisconnect()
{
2017-05-06 02:32:09 +02:00
$conn = SqlsrvUtil::connect();
SqlsrvUtil::disconnect( $conn );
}
}