3 ms·
That's because they inexplicably use the Jackson library for the simple test, rather than Play's built in JSON support (they use the built-in JSON for the other
by mrspeaker 14y ago
That's because they inexplicably use the Jackson library for the simple test, rather than Play's built in JSON support (they use the built-in JSON for the other benchmarks).
- rzidane 14y agoBoth Netty and Play use Jackson though one the Netty version uses a single ObjectMapper and the Play version uses a new ObjectNode per request (created through Play's Json library).
- ms-tg 14y agoI hope this gets fixed!
- abalone 14y agoNo, they use Play's JSON lib. It's kind of a moot point because Play's lib is in fact a wrapper for Jackson. Here's the source: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/play-java/app/controllers/Application.java https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast... So the question stands: If Play & Netty are using the same JSON serialization code, why is Play seven times slower?