News for hackers. Stuff that matters.
Re:Web Framework Benchmarks Round 7 by meepmorp on Thursday October 31, 2013 @06:22PM (#6650429)
For JSON serialization, I'd assume it's because they're testing object serialization.
Re:Web Framework Benchmarks Round 7 by mhixson on Thursday October 31, 2013 @10:06PM (#6651394)
Right. Related to this, I feel like a couple of frameworks are cheating on the plaintext test because they aren't actually testing string... serialization. They encode the "Hello, World!" string into bytes once, retain those bytes in memory, and send those bytes on each request just to avoid encoding the string again.

It's such a small, silly optimization. It doesn't bother me because it's not going to affect the overall results much, but I do feel it's against the spirit of the test. That kind of thing would be prevented if we made the test echo a request parameter, as was suggested elsewhere in the comments.

Re:Web Framework Benchmarks Round 7 by haberman on Thursday October 31, 2013 @06:36PM (#6650511)
Clients of a system don't know or care if the server actually constructed an object and serialized it. They care that they get the reply they expect, and do not care how it was constructed.
Re:Web Framework Benchmarks Round 7 by meepmorp on Thursday October 31, 2013 @06:44PM (#6650554)
Right, but then you're just testing how fast a framework can vomit out a small string and some headers.

I'm not saying it's an especially useful benchmark, but it's intended to test something besides raw response speed.

Re:Web Framework Benchmarks Round 7 by haberman on Thursday October 31, 2013 @06:53PM (#6650617)
Re:Web Framework Benchmarks Round 7 by meepmorp on Thursday October 31, 2013 @07:04PM (#6650687)
I wholeheartedly agree. But like said:

> I'm not saying it's an especially useful benchmark, but it's intended to test something besides raw response speed.