php-sqlsrv/test/Performance/benchmark/pdo_sqlsrv/PDOConnectionBench.php

17 lines
310 B
PHP
Raw Normal View History

2017-05-06 02:32:09 +02:00
<?php
use PDOSqlsrvPerfTest\PDOSqlsrvUtil;
/**
* @Iterations(1000)
*/
2017-05-06 02:32:09 +02:00
class PDOConnectionBench{
/*
* Opens a connection and closes it immediately
*/
public function benchConnectAndDisconnect(){
$conn = PDOSqlsrvUtil::connect();
PDOSqlsrvUtil::disconnect( $conn );
}
}
?>