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

Readme is incorrect in terms of --cores #237

Open
fetis opened this issue Apr 22, 2024 · 1 comment
Open

Readme is incorrect in terms of --cores #237

fetis opened this issue Apr 22, 2024 · 1 comment

Comments

@fetis
Copy link

fetis commented Apr 22, 2024

Default: half the available CPUs on the machine.

My command

npx loadtest -H ... -t 5 -c 20 http://localhost:8080/xxx

My output

Max time (s):        5
Concurrent clients:  120
Running on cores:    6
Agent:               none

Completed requests:  162
Total errors:        0
Total time:          6.364 s
Mean latency:        2112.9 ms
Effective rps:       25

I see that it utilizes all available (6) cores, instead of 3.

Also, for me, it looks like concurrency is taken per core, not per process. So total clients will be CORES*CONCURENCY

Loadtest v8

@alexfernandez If it's correct, I can update the doc

@alexfernandez
Copy link
Owner

@fetis Make sure that you don't have 6 cores with hyper-threading, which shows as 12 to the operating system and to os.cpus() which is what loadtest uses.

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

No branches or pull requests

2 participants