A quick walkthrough of benchmarking local models and viewing the results.
- Install Ollama and start it:
ollama serve - Pull a few models you can run on your hardware:
ollama pull gemma3:4b
ollama pull qwen3:8b
ollama pull llama3.1:8bnpm install
npm run build
# Benchmark specific installed models...
node dist/benchmark.js gemma3:4b qwen3:8b llama3.1:8b
# ...or the whole curated catalog
npm run benchmarkExpected output:
=== Local LLM Benchmark Tool ===
Ollama API URL: http://localhost:11434
Models to benchmark: gemma3:4b, qwen3:8b, llama3.1:8b
✓ Connected to Ollama API
Benchmarking gemma3:4b...
✓ Completed in 5.25s
✓ Generated 412 tokens
✓ Speed: 78.42 tokens/second
Benchmarking qwen3:8b...
✓ Completed in 9.52s
✓ Generated 498 tokens
✓ Speed: 52.31 tokens/second
Results saved to benchmark_results.csv
=== Benchmark Summary ===
Ranking (by tokens/second):
1. gemma3:4b: 78.42 tokens/s
2. qwen3:8b: 52.31 tokens/s
3. llama3.1:8b: 49.87 tokens/s
Done! Open the dashboard to view the results.
npm start
# open http://localhost:3000You'll see:
- Summary cards (catalog size, installed models, top intelligence, fastest measured)
- The Model intelligence catalog ranked by the Artificial Analysis Intelligence Index
- System specifications captured during the run
- A throughput bar chart and a detailed results table (with each model's
IQscore)
Run more benchmarks (CLI or the Run benchmark button in the UI), then click Refresh in the dashboard to reload the latest data.
# Point at a non-default Ollama
OLLAMA_API_URL=http://192.168.1.100:11434 npm run benchmark
# Custom dashboard port
PORT=8080 npm start- Cannot connect to Ollama API — make sure
ollama serveis running; checkcurl http://localhost:11434/api/tags. - Model not found —
ollama listto see what's installed, thenollama pull <model-name>. - Benchmark times out — the per-model timeout is 2 minutes; try smaller models or fewer at once.