Measure time-to-first-token and tokens-per-second for a local llama.cpp, vLLM, or Ollama server.
Track CPU and memory usage of an inference server while it generates a response.
Export raw per-token timing data as JSON for further analysis.
Compare the performance of different inference engines running the same model.
| michelecampi/inferscope | 404-agent/codes-miner | bakome-hub/bakome-crypto-quant-engine | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | Rust | Rust | Rust |
| Setup difficulty | moderate | moderate | easy |
| Complexity | 3/5 | 3/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Rust 1.83+ to build from source, project is alpha and its CLI may still change.
Inferscope is a command-line profiler written in Rust for measuring how well a local AI language model inference server is actually performing. If you run an LLM server yourself, the kind that exposes an OpenAI-compatible API, inferscope tells you not just whether it responded, but exactly how long each step took and how much system memory and CPU it consumed while doing so. The tool works by sending requests to any inference server that speaks the standard OpenAI API format (the README names llama.cpp's server, vLLM, Ollama, and others as compatible targets), then recording the timing of each individual token as it is generated. From this it derives: how long until the first token appeared (time to first token), the average and distribution of the gap between tokens (inter-token latency), the overall speed in tokens per second, and the total request duration. Simultaneously, it samples the server process's memory (RSS, how much RAM is actually in use), CPU percentage, and thread count from the Linux /proc filesystem, and correlates all of that on a shared clock so you can see resource usage alongside generation speed. Output is available as readable plain text or as a JSON document that includes the raw per-token timestamps, allowing further analysis without re-running the probe. The project is built as a Cargo workspace (Rust's multi-crate project format) split into five purpose-specific crates. It requires Rust 1.83 or newer and is currently in alpha. GPU resource monitoring is planned for a future release.
A command-line tool that measures the real speed and resource usage of a local AI language model server as it generates text.
Mainly Rust. The stack also includes Rust, Cargo.
Use freely for any purpose, including commercial use, as long as you keep the copyright and license notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.