klen / py-frameworks-bench

Another benchmark for some python frameworks
https://klen.github.io/py-frameworks-bench/
MIT License
709 stars 85 forks source link

Complete benchmarks seem misleading #19

Closed stephenoneal closed 3 years ago

stephenoneal commented 7 years ago

Since you're varying the ORM based on the http framework the benchmarks seem vary misleading. Some were using pee_wee, some sqlalchemy, and django was using django. Couldn't you make the benchmarks all use pee_wee so you're bench-marking the web delivery part of the framework in isolation of ORM performance and features?

ikalnytskyi commented 7 years ago

Seconded on this. Or even use pure SQL queries in order to avoid cost of abstractions.

cypreess commented 7 years ago

@stephenoneal @ikalnytskyi I do not find this misleading. I assume that this test is going to help you decide what exactly to use. Very often frameworks (like django) comes with builtin or at least standard/prefered ORM. When you choosing specific framwork you are then usually bound to specific ORM - and this is very practical test then.

ikalnytskyi commented 7 years ago

@cypreess I'm sorry to say so, but I completely disagree on this:

When you choosing specific framwork you are then usually bound to specific ORM - and this is very practical test then.

I'd say Django is exception here, though no one force you to use Django ORM. I've heard about using SQLAlchemy instead in some REST API project.

All those frameworks are not tied to ORM:

and you will find even more. I only listed the most popular ones (except async ones, as they usually do not have ORM).

jozuenoon commented 7 years ago

I would add here also:

klen commented 3 years ago

No ORM anymore