Skip to content

Commit 96f305a

Browse files
committed
Missing math result
1 parent 69f1f73 commit 96f305a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

benchmark.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
$options = array();
2121

2222
// Show or hide the server name and IP address
23-
$showServerName = false;
23+
$showServerName = true;
2424

2525
// Optional: mysql performance test
26-
//$options['db.host'] = '127.0.0.1';
27-
//$options['db.user'] = 'root';
28-
//$options['db.pw'] = '';
29-
//$options['db.name'] = 'test';
26+
$options['db.host'] = '172.28.2.148';
27+
$options['db.user'] = 'web.etics';
28+
$options['db.pw'] = '2w/QNfN~Q2H}';
29+
$options['db.name'] = 'S01_etics';
3030

3131
// -----------------------------------------------------------------------------
3232
// Main
@@ -289,6 +289,7 @@ function print_benchmark_result($data, $showServerName = true)
289289

290290
$result .= '<thead><tr><th>Benchmark</th><th></th></tr></thead>';
291291
$result .= '<tbody>';
292+
$result .= '<tr><td>Math</td><td>' . h($data['benchmark']['math']) . '</td></tr>';
292293
$result .= '<tr><td>String</td><td>' . h($data['benchmark']['string']) . '</td></tr>';
293294
$result .= '<tr><td>Loops</td><td>' . h($data['benchmark']['loops']) . '</td></tr>';
294295
$result .= '<tr><td>If Else</td><td>' . h($data['benchmark']['ifelse']) . '</td></tr>';

0 commit comments

Comments
 (0)