Skip to content

Commit

Permalink
Modified use of terminology in the runner to be consistent with that …
Browse files Browse the repository at this point in the history
…of the presentation and increased the number of executions from 20 to 50
  • Loading branch information
elazar committed May 12, 2010
1 parent ded3c50 commit 771cf25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runner.php
Expand Up @@ -8,7 +8,7 @@
*/

define('PHP_CGI_PATH', '/home/matt/Downloads/php-5.3.2/build/php_build/bin/php-cgi');
define('EXECUTIONS', 20);
define('EXECUTIONS', 50);

$elements = array(10, 100, 500, 1000, 5000);
$files = glob('tests/*.php');
Expand All @@ -18,7 +18,7 @@
}

$log = fopen('results/raw.csv', 'w');
fputcsv($log, array('Elements', 'File', 'Time', 'RPS', 'Memory'));
fputcsv($log, array('Elements', 'File', 'Time', 'EPS', 'Memory'));

$descriptor = array(
0 => array('pipe', 'r'), // stdin
Expand Down Expand Up @@ -47,13 +47,13 @@
$fields = explode(' ', trim($stderr));
$total = $fields[2];
$time = $total / EXECUTIONS;
$rps = 1 / $time;
$eps = 1 / $time;

fputcsv($log, array(
$count,
basename($file),
$time,
$rps,
$eps,
$memory
));
}
Expand Down

0 comments on commit 771cf25

Please sign in to comment.