[GH-ISSUE #2659] Benchmark: Warmup seems to spoil first round results #1059

Closed
opened 2026-11-04 01:48:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @sliedes on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2659

I realize this is probably hard to fix without invalidating existing benchmarks...

I'm seeing the first benchmark round in chat being consistently way faster:

chat: 3 short questions x 21 runs, up to 100 new tokens
  run 1 q1: decode 100.6 tok/s, first token 0.387 s, 100 tokens
  run 1 q2: decode 75.3 tok/s, first token 0.382 s, 100 tokens
  run 1 q3: decode 77.2 tok/s, first token 0.413 s, 100 tokens
  run 2 q1: decode 84.6 tok/s, first token 0.43 s, 100 tokens
  run 2 q2: decode 83.1 tok/s, first token 0.369 s, 100 tokens
  run 2 q3: decode 84.3 tok/s, first token 0.383 s, 100 tokens
chat: 3 short questions x 21 runs, up to 100 new tokens
  run 1 q1: decode 100.4 tok/s, first token 0.381 s, 100 tokens
  run 1 q2: decode 77.8 tok/s, first token 0.366 s, 100 tokens
  run 1 q3: decode 80.0 tok/s, first token 0.399 s, 100 tokens
  run 2 q1: decode 89.9 tok/s, first token 0.413 s, 100 tokens
chat: 3 short questions x 3 runs, up to 100 new tokens
  run 1 q1: decode 96.2 tok/s, first token 0.409 s, 100 tokens
  run 1 q2: decode 72.2 tok/s, first token 0.39 s, 100 tokens
  run 1 q3: decode 75.9 tok/s, first token 0.435 s, 100 tokens

Looking at the code, it warms up with PROMPT[0], which I'd suspect is the reason:

github.com/Niko1221/Strata@296b59d2f7/tools/strata_bench.py (L258)

Originally created by @sliedes on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2659 I realize this is probably hard to fix without invalidating existing benchmarks... I'm seeing the first benchmark round in chat being consistently way faster: ``` chat: 3 short questions x 21 runs, up to 100 new tokens run 1 q1: decode 100.6 tok/s, first token 0.387 s, 100 tokens run 1 q2: decode 75.3 tok/s, first token 0.382 s, 100 tokens run 1 q3: decode 77.2 tok/s, first token 0.413 s, 100 tokens run 2 q1: decode 84.6 tok/s, first token 0.43 s, 100 tokens run 2 q2: decode 83.1 tok/s, first token 0.369 s, 100 tokens run 2 q3: decode 84.3 tok/s, first token 0.383 s, 100 tokens ``` ``` chat: 3 short questions x 21 runs, up to 100 new tokens run 1 q1: decode 100.4 tok/s, first token 0.381 s, 100 tokens run 1 q2: decode 77.8 tok/s, first token 0.366 s, 100 tokens run 1 q3: decode 80.0 tok/s, first token 0.399 s, 100 tokens run 2 q1: decode 89.9 tok/s, first token 0.413 s, 100 tokens ``` ``` chat: 3 short questions x 3 runs, up to 100 new tokens run 1 q1: decode 96.2 tok/s, first token 0.409 s, 100 tokens run 1 q2: decode 72.2 tok/s, first token 0.39 s, 100 tokens run 1 q3: decode 75.9 tok/s, first token 0.435 s, 100 tokens ``` Looking at the code, it warms up with `PROMPT[0]`, which I'd suspect is the reason: https://github.com/Niko1221/Strata/blob/296b59d2f73c8f04a805df29c2fa97655adace78/tools/strata_bench.py#L258
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271154649 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1059
No description provided.