Re:Web API performance: profiling Django REST framework.
by coldtea on Friday July 12, 2013 @06:02PM
(#6035516)
>Since from his charts it looks like the bulk of his processing time is due to the database connection and transfer, what other framework/language is going to eliminate that. I am sure many alternatives have faster routing, serialization, and response generation, but that doesn't seem to matter with a database involved.
Oh, it really does. Not all database drivers, not the rest of the pipeline from DB to your data object, are the same.
Particularly interesting is how PHP, from being quite low as raw speed is concerned, gets way higher when multiple DB queries are used (due to the heavily optimized MySQL, 3rd generation IIRC, drivers I'd assume).
Oh, it really does. Not all database drivers, not the rest of the pipeline from DB to your data object, are the same.
Take a look here: http://www.techempower.com/benchmarks/#section=data-r6&hw=i7...
and here: http://www.techempower.com/benchmarks/#section=data-r6&hw=i7...
Particularly interesting is how PHP, from being quite low as raw speed is concerned, gets way higher when multiple DB queries are used (due to the heavily optimized MySQL, 3rd generation IIRC, drivers I'd assume).