Hacker News new | ask | show | jobs
by riffraff 4572 days ago
dumb question: are we sure these things are doing the same thing?

AFAICT some of the larger frameworks by default do a bunch of stuff (csrf and ip spoof checks, session management, etag generation based on content etc) that simpler solutions don't, but this things can usually be turned off.

2 comments

Exactly the same things? No, of course not. The non-framework code is the same, but the framework specific code (and features/functions) is going to be very very different. A lot of pull requests have been sent that turn off certain features (like unnecessary django middleware).

Barebones frameworks of the same language are generally going to out perform heavier frameworks. Feature count/matrixes are not taken into consideration for these benchmarks.

I'm sorry, I do not understand how this was obvious, I'll see if I can send pull requests.

Of course barebones platforms will be faster, but doing unnecessary work is a different thing.

It's more obvious if you read the blog posts linked to each of the rounds (but not this one), since they describe some of the changes that were made to each framework test to bring them closer to parity.
The source code to all of the benchmarks they do is available on Github. You can look at/submit patches for any improvements that are needed.