3 ms·
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.
by tantaman 14y ago
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.
- bsnyder788 14y agoMy 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.
- redtuesday 14y agoMore likely because the version uses only as many threads as the cpu has cores. Whereas the servlet version for example has 128 thanks to the default resin configuration.
- bsnyder788 14y agoThat would definitely be an issue as well. Although, this is easily configurable within the application.conf file if I remember correctly.
- maybenot 14y agoThe Play JSON controller is using Futures to do JSON serialization. https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/play-java/app/controllers/Application.java 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/master/servlet/src/main/java/hello/JsonServlet.java https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast... The former seems like overkill.
- redtuesday 14y agoThis is not the version which was used in the tests. The tests used a earlier version.
- bhauer 14y agoRegarding Lift: good news, we received a pull request for that earlier this week. Too late for this week's run, but we'll try to get it in next week! https://github.com/TechEmpower/FrameworkBenchmarks/pull/44 https://github.com/TechEmpower/FrameworkBenchmarks/pull/44