Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison of all tested frameworks in terms of performance #51

Open
akiirax opened this issue Oct 18, 2023 · 4 comments
Open

Comparison of all tested frameworks in terms of performance #51

akiirax opened this issue Oct 18, 2023 · 4 comments

Comments

@akiirax
Copy link

akiirax commented Oct 18, 2023

Hi @joanhey

Is there a benchmark done showing a comparison between all frameworks when combined with Workman with AdapterMan integration?

We're trying to choose the fastest/lightest-in-overhead possible framework to use with Workman.

@joanhey
Copy link
Owner

joanhey commented Oct 18, 2023

Using Workerman the fastest frameworks are Webman and Mark.

All the numbers are from the Techempower Benchmark, but not always the first it's really the fastest.
We are working on that because some frameworks use tricks: Ubiquity cache the template output, others don't use template, ...
I think that is better to check the json and single query tests, that don't can use tricks.

Also some frameworks with a minor version change, the performance have a big drop. For example that happened to Symofny in the last minor versions. I created a issue about that in the Symfony repo as drooped with workerman and swoole.

It's better that you test it with a minimal version of your app.

The Techempower benchmark publish public rounds, the next week will be released the round 22.
Here is the link to round 21, and round 22 will be available there when they published it.
https://www.techempower.com/benchmarks/#section=data-r21

But also they have a continuous run of the benchmark, at this url ( you only need to click in visualize any of them)
https://tfb-status.techempower.com/

The decision about which framework to choose, it's more about your type of application and others factors, not only the performance (but it's important).

@joanhey
Copy link
Owner

joanhey commented Oct 18, 2023

Also you can filter the visualization, to show only PHP frameworks.
And remember to watch also which use ORM or direct db connection. That will be necessary for some apps, but not all.
image
image

Example json test in the last run, with only php frameworks and platforms:
https://www.techempower.com/benchmarks/#section=test&runid=66d86090-b6d0-46b3-9752-5aa4913b2e33&l=xan9xb-35r&test=json

image

Aso you can filter for frameworks using only Workerman as platform.

https://www.techempower.com/benchmarks/#section=test&runid=66d86090-b6d0-46b3-9752-5aa4913b2e33&l=xan9xb-35r&test=json&p=zik0zj-zik0zj-zik0zj-zik0zj-zieepr-3

image

@akiirax
Copy link
Author

akiirax commented Oct 19, 2023

We're targeting a framework with an ORM (MySQL, Redis) and support for Json, Protobuf, and REST/Websocket.

Only building micro services.

Mark seems a bit stripped. We was about to move with Symfony given its wide range of modules but now you mention there's a performance issue, not sure how to proceed. And Laravel from I can see in the benchmarks is like real heavy.

What do you recommend?

@cayolblake
Copy link

@joanhey :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants