Scan your whole stack
Are you using latency-steps?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0
latency-steps was last scanned on 27 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0 LATEST | 27 Nov 2026 | No rules fired |
Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
English | 한국어
Someone says "it got slower". latency-steps reads your raw JSONL or CSV event log offline and tells you, per key (tool, endpoint, model), when latency stepped up and whether that step is one host, a shift in the load mix, or everything. It builds p50/p90 time series with DuckDB, finds sustained steps with a small pure-Python change-point detector, and then splits the windows before and after each step by the dimensions you name.
One command on built-in synthetic practice data: three sustained steps (findings) and one one-day spike (observation).
Needs Python 3.11 or newer (DuckDB 2.0 requires it) and uv.
curl -LsSf https://astral.sh/uv/install.sh | sh # installs uv (macOS / Linux)
git clone https://github.com/LeeGyeongPil/latency-steps
cd latency-steps
uv tool install . # puts `latency-steps` on your PATH
latency-steps --version
latency-steps 0.2.0
On a minimal Linux image you also need git and curl (and ca-certificates). The only runtime dependency is duckdb.
Or run straight from the clone without installing: uv run latency-steps demo.
demo is a practice (mock) mode: it writes a seeded synthetic log (4 keys x 4 hosts x 21 days, about 20,000 rows) and analyzes it through the same code path as a real file. The numbers are planted, not a real incident, and the screen says so. Nothing else is faked, and no network or API key is involved.
latency-steps demo --lang en
*** SYNTHETIC PRACTICE DATA - the numbers are planted, not a real incident. ***
Latency step report (latency-steps 0.2.0)
Input: demo (seed 7, 21 days, 40/hour) - 20160 rows read, 20160 kept, dropped rows 0
Fields: timestamp=ts, duration=duration_ms (ms), key=tool
Buckets: day (UTC), min rows 30, step lasts 3+ buckets, change x1.2+
Findings (3) - sustained steps
key since p50 before > after p90 before > after ratio verdict where
------ ---------- ------------------ ------------------ ----------- --------- -------------------
embed 2026-10-13 299 ms > 344 ms 478 ms > 1.55 s x3.25 (p90) localized host = h3
rerank 2026-10-09 508 ms > 689 ms 775 ms > 1.98 s x2.56 (p90) mix shift concurrency: new 8+
search 2026-10-11 1.20 s > 3.39 s 1.87 s > 5.18 s x2.83 (p50) global all cells
Observations (1) - worth a look, not a sustained step
key when kind ratio
---- ---------- ----------- -----------
chat 2026-10-06 brief spike x2.88 (p50)
(The full report continues with one evidence table per finding and dimension.) How to read it:
since is the first bucket at the new level.search got slower everywhere (global), embed only on host h3 (localized; its overall p50 barely moves, which is why the p90 column matters), rerank because a new kind of traffic appeared (mix shift).chat was slow for one day only) or went the other way. They are shown but never counted as a step.latency-steps analyze app.jsonl --key tool --by host --by concurrency:1-3,4-7,8+
| Option | What it does | Example |
|---|---|---|
path |
JSONL or CSV file (comma, semicolon, tab or pipe separated; UTF-8 with BOM, e.g. Excel exports, is fine; durations need a dot as decimal separator), .gz / .zst also work, - reads standard input |
app.jsonl.gz, - |
--ts FIELD |
Timestamp field. Default: the first of ts, timestamp, time, ... that exists |
--ts time |
--duration FIELD |
Latency field. Default: the first of duration_ms, latency_ms, duration, ... |
--duration elapsed |
--duration-unit ms\|s\|us |
Unit of bare numbers (guessed from the field name, else ms). Values like 12ms or 1.2s are read as written |
--duration-unit s |
--key FIELD |
One series per value of this field. Default: a single series | --key endpoint |
--by DIM |
Dimension to stratify by, repeatable: a field, or numeric ranges field:1-3,4-7,8+ |
--by host |
--bucket hour\|day\|auto |
Time bucket (auto = day when the log spans 14+ days) |
--bucket hour |
--min-n N |
Buckets with fewer rows are left out of the series (default 30) | --min-n 50 |
--min-run N |
A step must last this many buckets (default 3) | --min-run 4 |
--min-ratio X |
A step must change p50 or p90 by this factor (default 1.2) | --min-ratio 1.5 |
--metric p50\|p90\|both |
Which percentile series to inspect (default both) | --metric p90 |
--tz ZONE |
Bucket time zone (default UTC) | --tz Asia/Seoul |
--only KEY |
Analyze only this key, repeatable | --only search |
--memory-limit SIZE |
DuckDB memory cap (default 1GB); raise it for very large inputs | --memory-limit 4GB |
--format table\|md\|svg\|json, --out FILE |
Output format and destination | --format md --out report.md |
--fail-on-step |
Exit with code 1 when a step is found | |
--lang en\|ko |
Screen language | --lang ko |
latency-steps demo takes the same output options plus --seed, --per-hour and --save FILE (keep the synthetic log as a JSONL file to experiment on).
Broken lines, unparseable timestamps and values like "12ms" do not stop the run. Values are read as text and converted tolerantly; rows that cannot be interpreted are counted and shown. Rows with invalid UTF-8 bytes are counted too, in JSONL and in CSV. Here two bad lines were appended to a saved demo log:
latency-steps demo --save app.jsonl > /dev/null
printf 'not json at all\n{"ts":"yesterday-ish","duration_ms":"12ms","tool":"search","host":"h1","concurrency":2}\n' >> app.jsonl
latency-steps analyze app.jsonl --key tool --by host --only search --lang en | head -3
Latency step report (latency-steps 0.2.0)
Input: app.jsonl - 20162 rows read, 20160 kept, dropped rows 2
dropped: unparseable line 1, bad timestamp 1
Rows that could not be used are counted with a reason.
Think of a body-temperature chart. One hot afternoon is not a fever; a week at a higher level is.
--min-n rows are skipped and reported, so a quiet night cannot fake a step.--min-run) and how big (--min-ratio) a change must be. Short or reverting changes become observations.--by dimension, and each cell gets its row counts, before/after value, ratio and share of traffic.| Verdict | Meaning | Look at |
|---|---|---|
localized |
Only a few cells got slower | the host, region or version in the where column |
mix_shift |
Cell ratios are flat, or a cell that did not exist before appeared: the traffic changed, not the code path's speed | the share before > after column and new notes |
global |
At least 80% of cells got slower | a change that touches everything: deploy, dependency, shared service |
inconclusive |
Cells are too thin or two cells moved together | the table; collect more data |
With several --by dimensions the overall verdict is chosen in the order localized > mix shift > global > inconclusive. The rerank story in the demo is Simpson's paradox: judged by host every host is about x2.5 slower, yet by concurrency the old cells are flat and a cell 8+ that had no rows before carries the whole step.
latency-steps demo --only rerank --lang en
by concurrency: mix shift - a cell that did not exist before appeared
cell rows before/after p90 ratio share before > after note
---- ----------------- --------------- ----- -------------------- ----
1-3 1459/793 779 ms > 797 ms x1.02 75% > 26%
4-7 479/1049 744 ms > 794 ms x1.07 25% > 34%
8+ 0/1240 - > 2.45 s - 0% > 40% new
The verdicts are heuristics. Always read them together with the cell tables.
--format md --out report.md writes Findings, Observations and the stratification tables as Markdown.--format svg --out chart.svg writes one small panel per key with p50 and p90 lines, a vertical line at each step and a dot on spikes.latency-steps demo --format svg --out chart.svg --lang en
The SVG report of the demo log.
--format json writes a stable structure with "schema_version": 1. Keys and verdict codes are always English; only the summary strings follow --lang.Exit codes: 0 ok, 1 a step was found (only with --fail-on-step), 2 input or option error.
latency-steps demo --format json --fail-on-step --lang en > steps.json; echo "exit=$?"; grep -m 2 -E '"(schema_version|summary)"' steps.json | cut -c1-110
exit=1
"schema_version": 1,
"summary": "embed: p90 went from 478 ms to 1.55 s (x3.25) starting 2026-10-13; verdict localized. rerank: p9
In CI, replace demo with analyze nightly.jsonl --key tool and let the exit code fail the job.
- run: latency-steps analyze nightly.jsonl --key tool --by host --format json --fail-on-step > steps.json
The screen is available in English and Korean. Priority: --lang en|ko > LATENCY_STEPS_LANG > LC_ALL / LC_MESSAGES / LANG (a value starting with ko selects Korean, anything else English). Help text, tables, Markdown and SVG labels follow it.
LATENCY_STEPS_LANG=ko latency-steps demo
latency-steps --lang en analyze --help. The same screen exists in Korean.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.