YunaBraska / nano

tiny java tool - back to basics!
Apache License 2.0
4 stars 0 forks source link

[Performance] Benchmark #6

Closed YunaBraska closed 4 months ago

YunaBraska commented 8 months ago

Description

To measure the success, It's needed to compare Spring Boot Rest with ObjectMapper and Nano with the HttpService. Nano and Spring boot are not reactive but usually non-blocking.

Requirements:

Spring Boot

Nano

TestMap 1

TestMap 2

TestMap 4

YunaBraska commented 4 months ago

Benchmarks are not easily to do since virtualization still depends on the shared hardware limits and hosting a machine like I did with a Raspberry Pi depends on physical network layers like gateways, proxies, kernel port bind limits, etc. At the end, Spring Boot and Nano performed nearly equally with a huge difference in resource consumption. But Spring boot does pretty well from the response times, even it does a lot of more request handling. Spring boot probably has some caching mechanism.

@Kazim1101 we can review this, but for me the topic is done. It does not make sense to publish these tests when the metrics are too hard to understand like these from Gatling.