Round18 of TechEmpower Web Framework Benchmarks are out. reitit entry did well, being fastest of all Clojure, Scala and Kotlin entries (my favourite JVM languages) on physical hardware and second or first on cloud setup in all tests it was submitted. The JSON entry was only 3% slower than the fastest c++ entry. Not bad for a dynamically typed language using immutable data structures.
Clojure libraries used:
- reitit for routing
- jsonista for handling JSON
- porsas for JDBC & Async SQL
- hikari-cp for JDBC pooling
- immutant-nio (a perf fork of immutant) as web server
The async sql test was badly configured and it was much slower than the JDBC version, will try to make it good too, should be much faster (and non-blocking). Ideas and help on tuning the tests most welcome. Also, will start using pohjavirta as a simple and fast web server. Have toyed also with vert.x clojure bindings as the async SQL library used already uses it under the hoods.
Benchmarks shouldn’t be taken too seriously, but I think we can say Clojure can be fast too
Top Clojure, Scala & Kotlin entries on physical hardware: