[limb-svn] r6792 - misc/template_engines_bench
svn at limb-project.com
svn at limb-project.com
Mon Feb 11 17:54:11 MSK 2008
Author: korchasa
Date: 2008-02-11 17:54:11 +0300 (Mon, 11 Feb 2008)
New Revision: 6792
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6792
Modified:
misc/template_engines_bench/bench.inc.php
misc/template_engines_bench/index.php
Log:
-- move log_path constant to index file
Modified: misc/template_engines_bench/bench.inc.php
===================================================================
--- misc/template_engines_bench/bench.inc.php 2008-02-11 14:44:00 UTC (rev 6791)
+++ misc/template_engines_bench/bench.inc.php 2008-02-11 14:54:11 UTC (rev 6792)
@@ -45,8 +45,7 @@
function log_results($engines, $iterations, $concurency)
{
- $log_file_path = dirname(__FILE__).'/.bench.log';
- $fp = fopen($log_file_path, 'a');
+ $fp = fopen(BENCH_LOG_PATH, 'a');
fwrite($fp, json_encode(array('engines' => $engines, 'iterations' => $iterations, 'concurency' => $concurency))."\n");
fclose($fp);
}
Modified: misc/template_engines_bench/index.php
===================================================================
--- misc/template_engines_bench/index.php 2008-02-11 14:44:00 UTC (rev 6791)
+++ misc/template_engines_bench/index.php 2008-02-11 14:54:11 UTC (rev 6792)
@@ -8,6 +8,7 @@
require_once 'bench.inc.php';
define('BENCH_PATH_TO_AB', '/usr/sbin/ab');
define('BENCH_BASE_URL', get_bench_root_url());
+define("BENCH_LOG_PATH", dirname(__FILE__).'/bench.log');
function get_action()
{
More information about the limb-svn
mailing list