k911 / swoole-bundle

Symfony Swoole Bundle
MIT License
258 stars 46 forks source link

Framework Benchmark - TechEmpower #66

Open raziel057 opened 4 years ago

raziel057 commented 4 years ago

It would be great to check the perf improvement by adding the symfony-swoole on https://www.techempower.com/benchmarks/ like already done or laravel.

jderusse commented 4 years ago

This issue can be closed. PR https://github.com/TechEmpower/FrameworkBenchmarks/pull/5237 have been merged

BTW, if you have any optimization suggestion, feel free to open a PR

k911 commented 4 years ago

@jderusse Thanks, I think we can improve it drastically. Setting running_mode: reactor and using https://github.com/swoole/swoole-src#-amazing-runtime-hooks could potentially improve performance. I'll look into it.

jderusse commented 4 years ago

Good catch, just switching to running_mode: reactor boost performances by ~10% Goroutine in /updates and /queries may be great too. Tell me if you don't have time to do it

k911 commented 4 years ago

Currently, I'm busy, so feel free to write code

PS. I'll try to look into it more over the weekend

jderusse commented 4 years ago

I tried to use coroutine, but it don't fit well with doctrine (got "MySQL server has gone away"). Unless I missed a thing, the goal I don't see how to parallelise queries with coroutine.