php-orm-benchmark icon indicating copy to clipboard operation
php-orm-benchmark copied to clipboard

Testing : using localhost not docker

Open harikt opened this issue 7 years ago • 3 comments

Hi,

I am not using docker.

Just testing on the localhost with the changes made to configuration file.

Running

./run activerecord create
./run cake create
./run doctrine create
./run eloquent create
./run eloquent create

Every tests shows results. But only the ./run doctrine create is inserting record to the database.

The assert() doesn't do anything if there is no handler. So may be need to improve the tests?

Did you verified the data is being inserted ?

I agree the benchmark.ini settings are not considered.

harikt avatar Jan 09 '18 06:01 harikt

@harikt Do you have any idea how to verify the data is being inserted w/o affecting to the measurements?

sergeyklay avatar Jan 10 '18 00:01 sergeyklay

What do you think about

if (! $post->getId()) {
    throw new Exception("Didn't write to database");
}

Also I am wondering whether we should consider using tool like https://github.com/phpbench/phpbench : http://phpbench.readthedocs.io/en/latest/quick-start.html .

harikt avatar Jan 10 '18 04:01 harikt

Let's use for PhpBench a separate issue https://github.com/sergeyklay/php-orm-benchmark/issues/15

sergeyklay avatar Jan 10 '18 06:01 sergeyklay