Skip to content

Instantly share code, notes, and snippets.

View rajbos's full-sized avatar

Rob Bos rajbos

View GitHub Profile
@rajbos
rajbos / Measure-LocalAIThroughput.ps1
Last active May 9, 2026 11:54
Benchmarks output throughput (tokens/sec) for local AI inference: Ollama, LM Studio, Foundry Local, and vLLM (HuggingFace via Docker).
#Requires -Version 7
<#
.SYNOPSIS
Benchmarks output throughput (tokens/sec) for local AI inference providers.
.DESCRIPTION
Sends a standardised prompt to Ollama, LM Studio, Foundry Local, and/or
vLLM (HuggingFace), measures tokens generated per second using the
OpenAI-compatible /v1/chat/completions API, and outputs a Markdown summary table.
Each provider is tested $Runs times; results are averaged.