Beispiel #1
0
<?php

// Reset Module Title
$mod_title = "MySQL Test";
$data_source = 'test_mysql';
load_plugin('benchmark');
$cb = new code_benchmark();
$cb->start_timer();
include dirname(__FILE__) . '/../common/controller.php';
$cb->stop_timer();
$times = $cb->get_results();
$time_elapsed = round($times['stop'] - $times['start'], 5);
$gen_message[] = "Elapsed Time: {$time_elapsed} seconds";
Beispiel #2
0
//***********************************************************************
//***********************************************************************
// Database Engine Drivers Testing Script
//***********************************************************************
//***********************************************************************
include 'pre_page.inc.php';
// Data Source
$data_source = 'test_sqlsrv';
$GLOBALS['curr_ds'] = $data_source;
// Bind Values
$param1 = 1;
$param2 = 2;
// Start Benchmark
load_plugin('benchmark');
$cb = new code_benchmark();
$cb->start_timer();
//*******************************************************
// Get Driver Type
//*******************************************************
if (isset($_SESSION[$data_source])) {
    $driver_type = $_SESSION[$data_source]['type'];
} else {
    $warn_message = "Data source '{$data_source}' does not exist.";
    return false;
}
//*******************************************************
// Save Current Data Source and Type Globally
//*******************************************************
$GLOBALS['curr_ds'] = $data_source;
$data_source_type = $_SESSION[$data_source]['type'];