Muuntaja has been built with performance in mind, while still doing mostly everything in Clojure:
get-in)The codebase contains the performance test, done using Criterium under the perf Leiningen profile with a 2013 Mackbook pro.
NOTE: Tests are not scientific proof and may contain errors. If you have idea how to test things better, please poke us.
Muuntaja is tested against the current common ring-based formatters. It's fastest in all tests.
[ring/ring-json "0.4.0"] & [ring-transit "0.1.6"][ring-middleware-format "0.7.0"]


Pedestal:
io.pedestal.http.content-negotiation/negotiate-content for content negotiationio.pedestal.http.body-params/body-params for decoding the request bodyio.pedestal.http/json-body, io.pedestal.http/transit-json-body etc. to encode responsesMuuntaja:
muuntaja.interceptor/format-negotiate for content negotiationmuuntaja.interceptor/format-request for decoding request bodymuuntaja.interceptor/format-response to encode responsesmuuntaja.interceptor/format all on one step

Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |