Blog / Tools

Llmspeed: feel how fast a local LLM runs before you buy the hardware

This week's Show HN: llmspeed.dev simulates answer streaming at real model speed across 30 hardware setups — from an RTX 3060 to a Mac Studio M5 Ultra. We dig into its estimation model: why generation is memory-bound and prefill is compute-bound.

•5 min read
Tools Models

TL;DR: llmspeed.dev took off on Hacker News — an open-source (MIT) simulator of local LLM speed. Pick a hardware setup and a model, and watch the answer stream at the real predicted speed, including the wait for the first token. 30 configurations (NVIDIA/AMD/Intel GPUs, Macs, CPUs, cloud H100/H200) × 15 models, a side-by-side “race mode”, and honest confidence labels: measured / derived / projected. It is the perfect answer to the eternal r/LocalLLaMA question: “will my card run this model — and what will it feel like?”

What it is

The tool solves a specific pain of buying hardware for local models. “Tokens/sec” tables are dry: 24 tok/s and 196 tok/s differ eightfold on paper, but what does that mean in practice — a readable answer or a slideshow? Llmspeed shows it literally: text types out at the predicted speed, with a realistic time-to-first-token for your prompt length.

Coverage is decent: from an RTX 3060 12GB and a CPU-only Ryzen 9 9950X up to the RTX PRO 6000 96GB, DGX Spark, and a Mac Studio M5 Ultra 512GB. Models include Qwen 3.5/3.6/3.8, Gemma 4, GLM-5.3, GPT-OSS 20B/120B, DeepSeek V4/V4.1 Flash, Llama 3.1 8B, and Nemotron 3.5 Lightning. For every hardware × model pair you see whether the model fits in memory at its best quantization, needs partial offload to system RAM, or simply won’t run.

How the numbers are computed

The methodology is the most interesting part, and the repo README lays it out honestly:

  • Generation is bound by memory bandwidth: every generated token reads the active weights once. For mixture-of-experts models only the active parameters count — which is why Gemma 4 26B A4B hits 163 tok/s on an RTX 3090 while the dense Gemma 4 31B crawls at 22 tok/s at a comparable size.
  • Prefill is bound by compute (FP16 TFLOPS) — hence the first-token delay, which grows with prompt length.
  • Partial offload is modeled as a hybrid: the GPU-resident share streams at VRAM bandwidth, the spilled share at effective system-RAM bandwidth. That’s why a 35B-A3B model “works” on a 24 GB card — 188 tok/s but with a noticeable 1.2 s to first token.
  • Memory fit counts weights + KV cache + runtime overhead against ~93% of VRAM on discrete GPUs and ~75% of unified memory on Macs.

Every estimate is labeled by origin: measured (a real benchmark on that exact hardware), derived (interpolated from similar setups), projected (computed from specs for announced but unreleased hardware). Measurement sources: r/LocalLLaMA, localscore.ai, llama.cpp discussions. Want to improve the database — run llama-bench -m model.gguf -p 512 -n 128 and open a PR appending a row to benchmarks/submissions.csv.

What the data shows

Browsing the tables, a few observations stand out:

  1. MoE rules local inference. On the same 3090: GPT-OSS 20B (MXFP4) — 196 tok/s, Gemma 4 26B A4B — 163 tok/s, while dense models of comparable quality plod along at 22–24 tok/s. Active parameters matter more than the total count.
  2. Big frontier models don’t fit on a desktop at all. DeepSeek V4.1 Flash, GLM-5.3, GPT-OSS 120B on 24 GB — “won’t run” even at aggressive quantizations. They need 96+ GB or a Mac Studio with half a terabyte of unified memory.
  3. CPU-only is its own genre of suffering, but it’s honestly on the list: a Ryzen 9 9950X with 96 GB of DDR5 for those prepared to wait.

The fine print

  • These are estimates, not guarantees: drivers, engine versions, flash attention, power limits, and thermals can move real numbers by 10–30% (the authors say so themselves).
  • Single device only: multi-GPU (tensor/layer split) is not simulated.
  • The simulation covers a short prompt on a single request. Agent workloads — a long, growing context across dozens of iterations — feel different: long-context prefill and KV-cache growth are only captured by a slowdown coefficient.
  • Projected numbers for unreleased hardware (and there is some on the list) are extrapolation by definition.

Why this is close to home

A local model is half of a private agent stack. The other half is memory: where the agent keeps what it has learned about you and your projects. The “local model + local memory” combination yields a fully private loop: neither tokens nor facts ever leave the machine. That’s why we care about people choosing the right hardware for local inference — and tools like llmspeed push exactly that. MaxGraph, meanwhile, doesn’t care which model answers: the MCP memory server works the same with a local Qwen on a 3090 and with a cloud flagship.

FAQ

Is this a benchmark or a simulator? A hybrid: where measurements exist, they’re shown (with a measured label); where they don’t, a physics model based on memory bandwidth and TFLOPS, calibrated against measured points, takes over.

Can I trust the numbers when buying a GPU? As an order-of-magnitude guide — yes, especially the measured points. For derived/projected figures, keep ±30% in mind and check fresh r/LocalLLaMA threads for your specific card + model pair.

Is long agent context accounted for? Partially: there’s a slowdown coefficient for context growth, but no full simulation of a multi-hour agent session with an expanding KV cache.

What’s next


MaxGraph — memory for AI agents: local, private, with a living knowledge graph. 7 days free.

MaxGraph

Give your agent memory

7-day trial, no card. Installation is one prompt — your agent does the rest.

Pricing ✓ Copied