Skip to content

[doc] document long-doc-permutator workload in cli bench#2963

Merged
ApostaC merged 1 commit intoLMCache:devfrom
deng451e:docs/long-doc-permutator-bench
Apr 8, 2026
Merged

[doc] document long-doc-permutator workload in cli bench#2963
ApostaC merged 1 commit intoLMCache:devfrom
deng451e:docs/long-doc-permutator-bench

Conversation

@deng451e
Copy link
Copy Markdown
Collaborator

@deng451e deng451e commented Apr 6, 2026

What this PR does / why we need it:

Special notes for your reviewers:

If applicable:

  • this PR contains user facing changes - docs added
  • this PR contains unit tests

Note

Low Risk
Docs-only update that adds and references a new benchmark workload option; no runtime code changes.

Overview
Documents the new long-doc-permutator workload for lmcache bench engine, including its purpose, warmup/concurrency behavior, workload-specific flags, and an example invocation.

Updates the --workload option and interactive-mode workload list to include long-doc-permutator, plus a small formatting fix in the exit-codes section.

Reviewed by Cursor Bugbot for commit 715943b. Bugbot is set up for automated code reviews on this repo. Configure here.

Signed-off-by: deng451e <838677410@qq.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation for the new long-doc-permutator benchmark workload, including its configuration flags and usage examples. The review feedback identified a missing documentation entry for the --ldp-vocab-size flag, which is necessary for completeness according to the project's style guide.

Comment thread docs/source/cli/bench.rst
Comment on lines +280 to +295
* - ``--ldp-num-contexts``
- 5
- Number of unique context documents.
* - ``--ldp-context-length``
- 5000
- Token length of each context document.
* - ``--ldp-system-prompt-length``
- 1000
- Token length of the shared system prompt. Use ``0`` for no system prompt.
* - ``--ldp-num-permutations``
- 10
- Number of distinct permutations to send. Capped at N! where
N = ``--ldp-num-contexts``.
* - ``--ldp-num-inflight-requests``
- 1
- Maximum concurrent in-flight requests.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The documentation for the long-doc-permutator workload is missing the --ldp-vocab-size flag. This parameter is defined in the LongDocPermutatorConfig and is used to control the vocabulary pool size for synthetic context generation, which affects chunk hash collision risk. It should be included in the flags table for completeness.

Suggested change
* - ``--ldp-num-contexts``
- 5
- Number of unique context documents.
* - ``--ldp-context-length``
- 5000
- Token length of each context document.
* - ``--ldp-system-prompt-length``
- 1000
- Token length of the shared system prompt. Use ``0`` for no system prompt.
* - ``--ldp-num-permutations``
- 10
- Number of distinct permutations to send. Capped at N! where
N = ``--ldp-num-contexts``.
* - ``--ldp-num-inflight-requests``
- 1
- Maximum concurrent in-flight requests.
* - ``--ldp-num-contexts``
- 5
- Number of unique context documents.
* - ``--ldp-context-length``
- 5000
- Token length of each context document.
* - ``--ldp-system-prompt-length``
- 1000
- Token length of the shared system prompt. Use ``0`` for no system prompt.
* - ``--ldp-vocab-size``
- 8000
- Vocabulary pool size for context generation. Smaller values increase chunk hash collision risk.
* - ``--ldp-num-permutations``
- 10
- Number of distinct permutations to send. Capped at N! where
N = ``--ldp-num-contexts``.
* - ``--ldp-num-inflight-requests``
- 1
- Maximum concurrent in-flight requests.
References
  1. The style guide requires that missing or inaccurate documentation for user-facing changes be addressed (listed as an 'error' in the guide). (link)

Copy link
Copy Markdown
Contributor

@ApostaC ApostaC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ApostaC ApostaC enabled auto-merge (squash) April 7, 2026 22:46
Copy link
Copy Markdown
Contributor

@sammshen sammshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ApostaC ApostaC added the full Run comprehensive tests on this PR label Apr 8, 2026
@ApostaC ApostaC merged commit 5155663 into LMCache:dev Apr 8, 2026
35 of 36 checks passed
Oasis-Git pushed a commit to Oasis-Git/LMCache that referenced this pull request Apr 13, 2026
document long-doc-permutator workload

Signed-off-by: deng451e <838677410@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full Run comprehensive tests on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants