Re: RE: Re: Sqlite wrapper for Log package
| From: | Bertrand Mansion | Date: | Mon, 05 Jan 2004 15:05:11 +0000 |
| Subject: | Re: RE: Re: Sqlite wrapper for Log package | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24774@lists.php.net to get a copy of this message | ||
<borz_off@cs.msu.su> wrote :
> Hi!
>
> Bertrand Mansion wrote:
>> I have run tests with both Log_sql and my Log_sqlite classes using Xdebug
>> profiler. Here are the results I got:
>
> Bertrand, it will be a good idea to test you script with something like
> ab (Apache Benchmark) that can send multiple concurrent requests. It
> will be a more 'real-world' benchmark.
Alexey, would that be ok for a test script :
<?php
require_once('Log.php');
dl('sqlite.so');
echo 'starting benchmark';
$db = sqlite_open('log.db', 0666, $error);
$logger =& Log::factory('sqlite', 'log_table', 'test', $db);
$logger->log('benchmark event', PEAR_LOG_WARNING);
sqlite_close($db);
echo 'done';
?>
How many concurrent clients and total requests do you suggest ?
Bertrand