Earlier quoted context omitted.
I guess that's one of the big advantages JVM languages have. Using stuff like Spring or Hibernate (like Grails does), you benefit from thousands of person-hours spent on tuning those libraries and you still get native Java performance. Obviously there's a price you have to pay for all the things Grails built on top of Spring/Hibernate (in the benchmark it looks like Grails' performance = Spring / 2), but in general,…
It would be interesting to see the results for Grails 2.2 (which uses Groovy 2 and Invoke Dynamic) One of the nice things about Grails is that you can easily drop down to the Spring and/or JVM level when needed for performance.
Web Framework Benchmarks Round 2
201–210 of 241 posts
Re: Web Framework Benchmarks Round 2
#202Earlier quoted context omitted.
Instead, find it motivational. :) They are accepting pull requests.
In fact we've already got a pull request that includes Cowboy and Elli: https://github.com/TechEmpower/FrameworkBenchmarks/pull/50 We'll be including this in the next round.
Re: Web Framework Benchmarks Round 2
#203This is still a json API comparison, not a full framework comparison. In the first test it sees how fast frameworks can serialize json and in the second test it sees how fast frameworks can access the database AND serialize json. An inefficient json library and a framework is doomed across all tests. There are a lot of things frameworks do beyond serving json. These benchmarks are presented as representative of broad…
Re: Web Framework Benchmarks Round 2
#204Yesod disappoints! Unfortunate for how much it is hyped. This is definitely good to know, even if it appears that the Warp server was not used.
That's the first thing I noticed. What was used instead of Warp? I also see that Snap got pulled in a couple days ago, so it will probably get tested in the next round. Should be interesting to see how it fares against Yesod.
Re: Web Framework Benchmarks Round 2
#205This is superb. 1. More sorting options please :) I really want to sort by standard deviation. 2. Also in case of rails and other single threaded frameworks are you spinning up multiple processes? 3. Why is Go not being tested in the Database access tests? 4. Can you test rails with unicorn too?
2. Pat (pfalls) should know the answer to that more definitively, but we are definitely trying to use the CPU cores as fully as possible. I think you'll see some comments by Pat elsewhere in this thread suggesting some things coming in round 3.
3. Good question! Mostly because we haven't had the time to add it. I would really like to see it added, though. If you know Go and can write the code, might I entice you to submit a pull request?
4. I believe that is the plan, yes.
Re: Web Framework Benchmarks Round 2
#206Does anyone know what on earth is Play! doing that makes it is so slow? I'd like to see Lift in there if you guys do another round.
Re: Web Framework Benchmarks Round 2
#207As one would expect, as more data access is added, the scale of differences between web frameworks goes down. It would be interesting if you added 5 and 10 db query test runs as that starts to get closer to what a functional website would be doing.
We do in fact have 5 and 10-query runs available in the data. Switch the views to "Data table" or "All samples (line chart)" and you should see the data for 1, 5, 10, 15, and 20 queries per request.
Re: Web Framework Benchmarks Round 2
#208Earlier quoted context omitted.
If budget is finite, performant ~= scalable once you get to the point where you're actually trying to scale.
I think most people these days take scalability to mean the ability to handle more load by adding hardware without changing the architecture. That's quite different from how much load the same hardware can handle (performance).
Re: Web Framework Benchmarks Round 2
#209Once again, the Node examples are wrong. - Unnecessary parsing. - Writing strings instead of buffers (they're copied, they aren't sent as-is). - Using async. It does a lot of really nasty things, most of which break V8 optimization best practices. This is a perf benchmark, not a comparison of how concise your code can be. - Having the main request handler in a gigantic function that will never be properly optimized b…
Re: Web Framework Benchmarks Round 2
#210As one would expect, as more data access is added, the scale of differences between web frameworks goes down. It would be interesting if you added 5 and 10 db query test runs as that starts to get closer to what a functional website would be doing.