Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency performance #1572

Open
MarkWang2 opened this issue Aug 10, 2023 · 3 comments
Open

Concurrency performance #1572

MarkWang2 opened this issue Aug 10, 2023 · 3 comments

Comments

@MarkWang2
Copy link

MarkWang2 commented Aug 10, 2023

Is your feature request related to a problem? Please describe.

Use the ab tool to test "hello wold" demo performance(same as our project), the performance dropped dramatically in Concurrency mode.

ab -n 50 -c 1 http://localhost:80/hello_world

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    40   45   2.3     44      51
Waiting:       35   38   2.7     37      48
Total:         41   45   2.3     44      51

Percentage of the requests served within a certain time (ms)
  50%     44
  66%     46
  75%     46
  80%     47
  90%     48
  95%     50
  98%     51
  99%     51
 100%     51 (longest request)
 
 
 ab -n 50 -c 10  http://localhost:80/hello_world
 
 Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       1
Processing:    60  211  56.1    218     320
Waiting:       35  205  54.6    214     301
Total:         61  211  56.0    219     320

Percentage of the requests served within a certain time (ms)
  50%    219
  66%    235
  75%    249
  80%    254
  90%    270
  95%    281
  98%    320
  99%    320
 100%    320 (longest request)

Describe the solution you'd like

Better concurrency performance.

@justin808
Copy link
Member

@MarkWang2 what is the A and B of your test?

Did you try 13.4.0?

@MarkWang2
Copy link
Author

@MarkWang2 what is the A and B of your test?

Did you try 13.4.0?
Use Apache ab load test tools to test. A one concurrency B ten concurrency。

Yes, tried 13.4.0

@Judahmeek
Copy link
Contributor

@MarkWang2 let me know if I'm interpreting your results correctly.

If you run a single request, you get results in 4050ms. So 10 sequential requests would take 400500ms.

However, if you run 10 requests simultaneously, then you get results between 60~300ms, with an average around 250ms, which is around the time required to run 5 requests sequentially.

If that's accurate, then I have to ask why you suspect there's room for improvement here & what tools you would recommend in order to identify the concurrency bottlenecks are.

Also, what was the value you had set for ReactOnRails' server_renderer_pool_size?

If you've examined our documentation for that configuration value, I think you're aware that it's the likely biggest bottleneck & not easy to improve either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants