php-orm-benchmark
php-orm-benchmark copied to clipboard
Testing : using localhost not docker
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 Do you have any idea how to verify the data is being inserted w/o affecting to the measurements?
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 .
Let's use for PhpBench a separate issue https://github.com/sergeyklay/php-orm-benchmark/issues/15