6 ms·
The Play JSON controller is using Futures to do JSON serialization. https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/play-java/app/controllers/Ap
by maybenot 13y ago
The 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 13y agoThis is not the version which was used in the tests. The tests used a earlier version.