Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

llm-inference-bench Features and Benchmarking Methodology

The llm-inference-bench project provides benchmarking tools for evaluating LLM inference performance, including a TUI dashboard, hardware monitoring, and support for various profiling and evaluation scenarios.

Share
AI-generated conceptual illustration accompanying: llm-inference-bench Features and Benchmarking Methodology
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Benchmarking Features and Options

The llm-inference-bench project offers a range of benchmarking features and options for evaluating LLM inference performance. It includes a Rich TUI dashboard for monitoring decode throughput and supports Prometheus validation when available. Users can choose between standalone prefill profiling with --standalone-prefill or mixed prefill-contexts for more complex scenarios. The tool also allows saving full streamed output text in JSON via --completion-stats-save-text and adjusting sampling temperature with --completion-stats-temperature. For tool-calling quality evaluation, the --tool-eval options provide control over scenarios, parallelism, and timeouts, with Hard Mode scenarios available via --tool-eval-hardmode. Results are saved in a container at /cache/lil-bench/<run>.json.gz and uploaded to a private run list, as noted in the project's documentation.

Hardware and Performance Monitoring

The llm-inference-bench project provides detailed insights into hardware and performance monitoring for large language model (LLM) inference. The benchmark runs take approximately 15–30 minutes and include hardware inventory, PCIe checks, and performance tests such as p2pmark, prefill, and decode operations across various context sizes. GPU clocks, power usage, and throttle reasons are sampled throughout the process, as noted in the run details.

  • p2pmark runs in a separate process and requires about 0.6 GiB per GPU for its CUDA context, with an additional 0.5 GiB for NCCL all-reduce comparisons and copy buffers.
  • The benchmark ensures 256 MiB of free memory on each GPU for the server, and it avoids running during active requests.
  • vLLM retains memory usage after the first benchmark, which may limit room for subsequent runs unless earlier results are reused.
  • On a DGX Spark system, the GB10 GPU shares the host's memory and is marked with integrated and unified_memory attributes, with no PCIe link to check.
  • For multi-node setups, the benchmark is measured from the container of node rank 0, and the result includes the total number of nodes in server.nodes.

Benchmarking Methodology and Context

The llm-inference-bench project outlines a benchmarking methodology focused on evaluating Ethernet-based AI inference serving network fabrics. As defined in Reddy’s document from Apple (8 October 2026), the scope includes Layer 2/3 fabric performance, RDMA transport performance, and the interaction between fabric behavior and application-level inference metrics such as Time to First Token (TTFT), Inference Token Latency (ITL), and Tokens Per Second (TPS). The methodologies extend RFC 2544 benchmarks to inference-specific scenarios, including KV cache transfer and expert parallelism dispatch. The document also distinguishes between training and inference workloads, noting that inference workloads involve bursty, latency-sensitive transfers and fine-grained AllToAll dispatch for MoE expert parallelism. Implementers using converged fabrics for both training and inference are advised to run both test suites. The term TTFT_fabric is introduced to measure the fabric-segment contribution to TTFT at the DUT-PD boundary.

Model Performance and Thermal Analysis

Model Performance and Thermal Analysis reveals key insights from testing on an RTX 5050 Laptop GPU. Power draw remains nearly flat across all models, averaging between 60-73W regardless of model size, according to jaivalsuthar.hashnode.dev. Temperature differences, however, are more pronounced: Phi-4 Mini and Gemma maintain mid-60s°C, while 8B models operating near 100% utilization reach mid-70s°C, as noted in jaivalsuthar.hashnode.dev. Throughput and resource usage also vary significantly; one model achieved 83.4 tok/s at 512 tokens, using less than half the VRAM of 8B models, per jaivalsuthar.hashnode.dev. This model also demonstrated the lowest VRAM usage (3.0 GB), lowest average temperature, and competitive throughput, as stated in jaivalsuthar.hashnode.dev. jaivalsuthar.hashnode.dev highlights that Qwen3 8B and DeepSeek R1 8B models converge when output length is controlled. Finally, jaivalsuthar.hashnode.dev suggests that thermal headroom, rather than power, is the limiting factor for sustained local inference on this GPU.

Benchmarking Tools and Execution

The llm-inference-bench project provides tools for benchmarking large language model (LLM) inference performance. A key tool is lil-bench, which requires specific execution steps, such as running it after the server starts and using options like --no-upload or --profile quick for different testing scenarios. The tool can also generate hardware/topology records via inventory. For environments without the image, the benchmark can be executed directly from a checkout using python3 -m lil_bench, though it depends on external libraries like httpx, rich, and pynvml. According to the project's documentation, all benchmarks in this article were conducted on an NVIDIA GeForce RTX 5050 Laptop GPU (8 GB VRAM) using Ollama. The author notes that while speed benchmarks can measure tokens per second, they may not fully reflect whether a model completes a task successfully.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more