aws-samples / serverless-java-frameworks-samples

MIT No Attribution
150 stars 36 forks source link

Performance optimizations #7

Closed maschnetwork closed 2 years ago

maschnetwork commented 2 years ago

Description of changes:

New benchmark results (Only tested with 50 concurrent requests / s for 60 seconds - which should give a first impression):

Micronaut JVM:

micronaut-jvm

Current p50 cold start: 8505 vs. new p50 cold start: 4835 = +45% Improvement

Quarkus JVM:

quarkus-jvm

Current p50 cold start: 6384 vs. new p50 cold start: 3755 = +42% Improvement

Spring JVM:

spring-jvm

Current p50 cold start: 12673 vs. new p50 cold start: 5370 = +58% Improvement

Micronaut Native:

micronaut-native

ps: Didn't add other native results as they should be similar as there were no changes.

Small caveat:

Ask for input:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

alvarosanchez commented 2 years ago

@maschnetwork This is great! Perhaps it could use Micronaut 3.6, and potentially Micronaut AOT too.