Live data from Hacker News

Web Framework Benchmarks Round 2

techempower.com

131–140 of 241 posts

Re: Web Framework Benchmarks Round 2

#131

Does 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.

My best guess is that the java one is slow due to ebean (I've always seen huge performance improvements from switching to raw jdbc). The scala one I have no clue.

Re: Web Framework Benchmarks Round 2

#132
Cool stuff. Only looked over it quickly but it seems JAVA stuff is dominating.

Kind of curious why jruby doesn't provide more of a boost (especially given compojure doing relatively well, too) and would like to see Django+Jython in version 3 (and +1 to the .NET/Mono stuff)

Re: Web Framework Benchmarks Round 2

#133

As an amateur hacker and after 275 days of reading Hacker News I feel I can now navigate in the sea of client side Javascript frameworks. With the introduction of this data on web framework performance, I now have another set of choices that I am completely unqualified to comprehend. My first impression is that this data shows about 3 levels of web frameworks. At the bottom (slowest) we have Django's and Rails and ma…

IMO if you build a product and it is working, there really is not much reason to redo your efforts in a higher performance framework unless your needs require you to do so. If you are at your current hardware's limits and you can't throw more hardware at it (for whatever reason), it may make sense in that case. If you want to reduce the amount of servers you currently have, it also makes sense there. http://blog.iron…

[deleted]

Re: Web Framework Benchmarks Round 2

#134
post #61

It's a useful data point to know the speed of frameworks, but what matters most to me is speed of development and whether or not I enjoy the process. Wish there was a way to benchmark those points.

I 100% agree with this. It has been a huge point of discussion for us here internally. "Developer efficiently with language x." Ultimately, language performance does matter but there are ways to make up for less performant languages. If it takes you 2x as long to get something out the door though, then that is a huge problem. Just use the language and framework you are most efficient in and enjoy using. Worry about f…

Sure... as long as you have the migration and rewrite plan done and ready to go, and have engineered the product for that rewrite. Otherwise you're gonna be wishing you'd failed rather than succeeded.

Re: Web Framework Benchmarks Round 2

#135

Does 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.

The Play JSON controller is using Futures to do JSON serialization.

https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

Compare this to the Java Servlet, which just serializes directly in the Servlet callback.

https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

The former seems like overkill.

Re: Web Framework Benchmarks Round 2

#136

Is it against the rules to use different workers for Django or Flask? In other words, there's a big difference when I run things with Gunicorn+Gevent+psychopg (PostGres async driver) than when I run it just with Gunicorn alone.

Each test can be modified in isolation, if both tests see an improvement in that setup, we would like to include the changes for both though.

Re: Web Framework Benchmarks Round 2

#137
I wish you would have tested minimalist web frameworks in Python: CherryPy and Bottle. Flask is not really a micro-framework in the same way that CherryPy and Bottle are micro-frameworks because of its numerous dependencies.

Re: Web Framework Benchmarks Round 2

#138
post #117

I find the lack of Erlang frameworks disappointing.

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

#139
post #53
post #37

Earlier quoted context omitted.

https://github.com/TechEmpower/FrameworkBenchmarks/tree/mast... See php.ini, php-fpm.conf.

I could be missing something, but it looks like you are using the default settings. Have you tried tweaking it all? Specifically setting apc.stat=0, which will stop it from checking the mtime. You'll need to clear the cache with apc_clear_cache() when you make code changes though. You may also want to look at apc.php to check for fragmentation and adjust apc.shm_size if necessary

[deleted]

Re: Web Framework Benchmarks Round 2

#140

Very interesting - again. What I - again - find most interesting, is the large discrepancy in the 20-query test. Common wisdom seems to be that language performance is not important b/c every language hangs in the same IO/DB.

probably a combo of mysql drivers and connection pooling.
Post reply on HN