tests : speed-up server test suite 3x - #26734
Conversation
|
@ngxson The |
|
These are currently the top 30 slowest tests: |
ngxson
left a comment
There was a problem hiding this comment.
Thanks! Nice improvement, I haven't thought about this.
Btw, I've also been thinking about another improvement: currently, server need to restart on every single test; we can tweak the test framework such that a group of test cases can reuse the same instance. Although, that's a more complicated change than the current PR.
yes I think some test cases for router is too extensive, it can definitely be optimized |
We can also probably run the test suite in parallel with multiple servers. This should be relatively simple change to the |
* tests : speed-up test suite 3x * cont : print 30 slowest tests
* tests : speed-up test suite 3x * cont : print 30 slowest tests
* tests : speed-up test suite 3x * cont : print 30 slowest tests
* tests : speed-up test suite 3x * cont : print 30 slowest tests
This commit adds pytest-xdist to the server tests. This is pytest plugin that distributes test execution across multiple CPU cores. Assisted-by: pi:llama.cpp/qwen3.8-27B Refs: ggml-org#26734 (comment)
* server : use pytest-xdist for server tests This commit adds pytest-xdist to the server tests. This is pytest plugin that distributes test execution across multiple CPU cores. Assisted-by: pi:llama.cpp/qwen3.8-27B Refs: #26734 (comment) * remove server_base_port and BASE_PORT * use worksteal and pytest builting tmp_path
* server : use pytest-xdist for server tests This commit adds pytest-xdist to the server tests. This is pytest plugin that distributes test execution across multiple CPU cores. Assisted-by: pi:llama.cpp/qwen3.8-27B Refs: ggml-org/llama.cpp#26734 (comment) * remove server_base_port and BASE_PORT * use worksteal and pytest builting tmp_path
* server : use pytest-xdist for server tests This commit adds pytest-xdist to the server tests. This is pytest plugin that distributes test execution across multiple CPU cores. Assisted-by: pi:llama.cpp/qwen3.8-27B Refs: ggml-org#26734 (comment) * remove server_base_port and BASE_PORT * use worksteal and pytest builting tmp_path
* tests : speed-up test suite 3x * cont : print 30 slowest tests
* server : use pytest-xdist for server tests This commit adds pytest-xdist to the server tests. This is pytest plugin that distributes test execution across multiple CPU cores. Assisted-by: pi:llama.cpp/qwen3.8-27B Refs: ggml-org#26734 (comment) * remove server_base_port and BASE_PORT * use worksteal and pytest builting tmp_path
* server : use pytest-xdist for server tests This commit adds pytest-xdist to the server tests. This is pytest plugin that distributes test execution across multiple CPU cores. Assisted-by: pi:llama.cpp/qwen3.8-27B Refs: ggml-org#26734 (comment) * remove server_base_port and BASE_PORT * use worksteal and pytest builting tmp_path
Overview
load_server_presets()once per session instead of once per moduleOn M2 Ultra:
Requirements