Skip to content

Commit

Permalink
Replaced ENCODE with AES_ENCRYPT #7 and fixed RAND issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
odan authored Feb 22, 2019
1 parent 4172263 commit 69f1f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
function test_benchmark($settings)
{
$result = array();
$result['version'] = '1.2';
$result['version'] = '1.4';
$result['sysinfo']['time'] = date('Y-m-d H:i:s');
$result['sysinfo']['php_version'] = PHP_VERSION;
$result['sysinfo']['platform'] = PHP_OS;
Expand Down Expand Up @@ -246,7 +246,7 @@ function test_mysql(&$result, $settings)
$result['sysinfo']['mysql_version'] = $arr_row['version'];
$result['benchmark']['mysql_query_version'] = timer_diff($timeStart) . ' sec.';

$query = "SELECT BENCHMARK(1000000,ENCODE('hello',RAND()));";
$query = "SELECT BENCHMARK(1000000, AES_ENCRYPT('hello', UNHEX('F3229A0B371ED2D9441B830D21A390C3')));";
mysqli_query($link, $query);
$result['benchmark']['mysql_query_benchmark'] = timer_diff($timeStart) . ' sec.';

Expand Down

0 comments on commit 69f1f73

Please sign in to comment.