Re: RE: Re: Sqlite wrapper for Log package
| From: | Bertrand Mansion | Date: | Mon, 05 Jan 2004 18:04:54 +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-24781@lists.php.net to get a copy of this message | ||
<borz_off@cs.msu.su> wrote :
> Hi!
>
> Bertrand Mansion wrote:
>> 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 ?
>
> Well, looking at the results in your previous message, I'd say use
> around 2000 requests and 15-20 concurrent clients.
I have run the tests and they don't show much difference between each
others. Log_sqlite was even faster than Log_file in some cases so I can't
come to a conclusion. Let me know if you made the tests yourself and the
results you got.
Bertrand