Framework performance comparison

April 12, 2025 ยท View on GitHub

In summary: Minum is as fast, sometimes faster than Spring in these statistics.

MinumSpring
Compile time
> mvn clean compile
> (minum) make clean jar
3.41.5
Start Time (Sec)
> java -jar app.jar
0.31.6
Requests Per Second
> ab -k -c 20 -n 1000000 http://localhost/8080/hello/John
Single thread
19k18k
Requests Per Second with -Xmx16m
> ab -k -c 20 -n 1000000 http://localhost:8080/hello/John
Single thread
19k10k
Requests Per Second with -Xmx64m
> wrk -t12 -c400 -d30s --latency http://localhost:8080/hello/John
12 threads and 400 connections
8.9k4.2k
Memory Consumption - Heap Usage (Mb)5095
Memory Consumption - Heap usage with -Xmx16m (Mb)8.610.5
Jar Size With Dependencies (Mb)0.219