Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Benchmark: Warmup seems to spoil first round results

Closed Beginner friendly
#2,659 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

The benchmark is in tools/strata_bench.py; the warmup that uses PROMPT[0] is around line 258, and the chat section prints per-run decode tok/s and first-token latency. Read how warmup is invoked before the timed runs, then run the chat benchmark and compare run 1 against run 2 for each question. Done when the first round no longer runs measurably faster than later rounds, or when the warmup choice is justified in the code.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
11.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Niko1221/Strata

All issues in Niko1221/Strata

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.