Hello. İ have a server with 4 cpu and 8gb ram. Server uses AMD Epyc gen 2 cpu. My cpu gets 800 point for single core and 3000 points for multicore from GeekBench 5 test. So my cpu is not weak. İt’s actually pretty good according to GeekBench
İ decided to make a benchmark. İ used wrk library.
İ made request to my cloud code using functions endpoint. You can see my cloud code here
Results are lower than i expected. İ get 60-70 requests per second i expected at least 200.
İ have an Nginx reverse proxy server on front of my s3 storage. This server only has 2gb ram and 2cpu. İ cache images in this server. With same test, i get 5000 request per second for larger files and i once even get 14000 request for small files. İ know static files will be much faster. But gap between them are way higher. Ever my parse server is more powerful.
Yes parse server is dynamic server and has to recreate response Everytime. But still it looks lower.
İ even tried with 16cpu and 32gm ram machine. But highest value i get was 550 req/sec.
I’m using pm2 module. Pm2 runs parse server in cluster mode and load balancer between them.
İ also copied parse server to different folder and launched different parse server in different ports in same machine. For example
And load balanced them with Nginx to see if problem is related to pm2. But it’s not. İ get same results.
İs this results are normal? İf not, what am I doing wrong here?
Edit: Additional information;
Pm2 runs 4 instances of parse server, because i have 4 cpu.
My parse server version is 4.2.0
My MongoDb version is 4.2.8