Skip to content

Emit valid JSON for empty benchmark samples - #23

Draft
dajiaohuang wants to merge 1 commit into
Graphicle-AI:mainfrom
dajiaohuang:w18/store-load-empty-samples-json
Draft

dajiaohuang wants to merge 1 commit into
Graphicle-AI:mainfrom
dajiaohuang:w18/store-load-empty-samples-json

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Change

Handle the documented --clients 0 no-reader benchmark mode without emitting non-standard JSON. Empty latency samples now produce
ull percentiles; the table renderer displays
/a, and
un.json serialization rejects NaN/Infinity.

Evidence

�ench/store-load/RESULTS.md documents no-reader runs with --clients 0. Before this change, empty successful-latency lists returned loat('nan'), which json.dumps emitted as the non-standard token NaN; able.py then formatted that value as
an instead of indicating that there was no sample.

Validation

  • git diff --check passed.
  • No tests or benchmark run. The benchmark runner empties its --data-dir; I did not run it against unspecified data.

Signed-off-by: dajiaohuang <mikewushuwen@outlook.com>

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant