Here are some benchmarks of JDK 17 GCs. I wanted to compare a basic service running on Vert.x fetching and stream (HTTP chuncked transfer) 500 rows, serializing them to JSON (almost 30KB when serialized), send them over wire (buffered). Here are tech specs of this benchmarks:
- All processes including Vegeta, Postgres, and Java were running on same machine
- Host machine is a 2015 Macbook Pro (2.2 GHz Quadcore Intel Core i7), with 16 GB 1600 MHZ DDR3 RAM.
- Each benchmark was warmed up by first running atleast 3 1000 req/s stress tests before the readings posted in these benchmarks.
- RSS of each process was noted towards the end of benchmarks.