npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

llm-tps

v0.1.0

Published

CLI to benchmark LLM streaming TPS, TTFT, and thinking-token split

Readme

llm-tps

CI npm version License: MIT

Benchmark CLI that measures real-world streaming TPS, TTFT, and think vs final token split for LLM APIs, subscriptions, and coding agents.

Default llm-tps bench prints the north-star table across available providers and a max_tokens sweep (200, 500, 1000).

Install

Requires Bun >= 1.1 (runtime for the CLI, even when installing via npm).

npm install -g llm-tps
# or
bun install -g llm-tps

Verify:

llm-tps --version

Prerequisites

| Provider | Preset ID | Auth | |----------|-----------|------| | MiniMax Token Plan | minimax-plan | mmx auth login~/.mmx/config.json | | ChatGPT Codex Pro | codex-pro | codex login~/.codex/auth.json | | OpenAI API | openai | OPENAI_API_KEY env var | | Anthropic API | anthropic | ANTHROPIC_API_KEY env var | | MiniMax API | minimax-api | MINIMAX_API_KEY env var | | Cursor SDK | cursor | CURSOR_API_KEY env var + optional @cursor/sdk |

Copy .env.example to .env for API keys. Subscription providers reuse upstream CLI OAuth tokens.

Check what's available:

llm-tps providers
llm-tps providers doctor

Quick start

# all available providers, default sweep and workload
llm-tps bench

# one provider, one workload
llm-tps bench --provider codex-pro --workload long --runs 5

# override model or token sweep
llm-tps bench --provider minimax-api --model MiniMax-M3 --max-tokens 200,500,1000

# output formats
llm-tps bench --output json
llm-tps bench --output csv --out results.csv
llm-tps bench --output markdown

# skip warmup call
llm-tps bench --no-warmup

Metrics

  • TTFT — ms from request start to first streaming delta
  • TPS_final — final answer tokens ÷ generation time (excludes thinking)
  • TPS_total — all output tokens ÷ generation time (includes reasoning)
  • FinalTok / ThinkTok — token counts from provider usage or think-tag parsing

Headline values are the median of measured runs (default 3). Run 1 is a warmup and discarded unless --no-warmup.

See docs/METRICS.md for formulas and comparison notes.

History

Every successful run appends to ~/.llm-tps-bench/history.jsonl:

llm-tps history
llm-tps history --last 50
llm-tps history --provider codex-pro --since 7d
llm-tps history --trend

Development

git clone https://github.com/naufaldi/llm-tps-bench.git
cd llm-tps-bench
bun install
bun test
bun run typecheck
bun run lint
bun run build          # produces dist/llm-tps
bun run dev -- bench   # run from source

Contributing: fork, branch, ensure bun test passes, open a PR. See AGENTS.md for architecture and conventions.

License

MIT