I created simple Webflux (kotlin) app with reactive mongo. Controller has one GET method which is return Flow (2 objects from one collection). I used Apache Benchmark and I noticed one thing: I have i7 10700 (8+8 cores). If I set System.setProperty("reactor.netty.ioWorkerCount", "8"), performance increases. With 16 netty-nio threads AB shows ~4800 requests per second and one request time takes about 7-9 ms. With 8 netty-nio threads AB shows ~5500 requests per second and 3-5 ms per request.
Is it worth in future in real project use only physical cores? Does hyper-threading have advantages in other situations?
https://stackoverflow.com/questions/66512566/webflux-netty-with-or-without-hyperthreading March 07, 2021 at 10:06AM
没有评论:
发表评论