3 ms·
I know it's not completely related to the thread - but how is Rails vs Django in terms of performance? I'm getting subjective information that Rails is much fas
by bkovacev 5y ago
I know it's not completely related to the thread - but how is Rails vs Django in terms of performance? I'm getting subjective information that Rails is much faster for APIs in terms of response times, serialization speed etc. although I have been using django for the past 7-8 years and have to say that the best response times was 200-300ms w/o caching for some heavy json responses. And something that should be blazing <100ms, still takes 200ms to respond.
- trimbo 5y agoThere are too many factors to make a broad comparison in milliseconds. Are you running the code on a RaspPi or on the latest Zen3? Serialization should be implemented in C so unless the JSON is megabytes in size, whatever is happening here probably has to do with the business logic implemented in Python. Python and Ruby are equally slow when they aren't wrapping frameworks primarily written in C (e.g. tensorflow), so choosing between them is IMO a stylistic or compatibility choice.