Skip to content

Commit

Permalink
Merge pull request #12 from jlzaratec/add_print_math
Browse files Browse the repository at this point in the history
Add print math
  • Loading branch information
odan authored Oct 2, 2019
2 parents 69f1f73 + 3c722f6 commit 9cfb46b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
$showServerName = false;

// Optional: mysql performance test
//$options['db.host'] = '127.0.0.1';
//$options['db.user'] = 'root';
//$options['db.pw'] = '';
//$options['db.name'] = 'test';
/*$options['db.host'] = '';
$options['db.user'] = '';
$options['db.pw'] = '';
$options['db.name'] = '';*/

// -----------------------------------------------------------------------------
// Main
Expand Down Expand Up @@ -289,6 +289,7 @@ function print_benchmark_result($data, $showServerName = true)

$result .= '<thead><tr><th>Benchmark</th><th></th></tr></thead>';
$result .= '<tbody>';
$result .= '<tr><td>Math</td><td>' . h($data['benchmark']['math']) . '</td></tr>';
$result .= '<tr><td>String</td><td>' . h($data['benchmark']['string']) . '</td></tr>';
$result .= '<tr><td>Loops</td><td>' . h($data['benchmark']['loops']) . '</td></tr>';
$result .= '<tr><td>If Else</td><td>' . h($data['benchmark']['ifelse']) . '</td></tr>';
Expand Down

0 comments on commit 9cfb46b

Please sign in to comment.