[PR #11173] [MERGED] int: add performance integration tests #75757

Closed
opened 2026-05-05 08:10:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11173
Author: @dhiltgen
Created: 6/23/2025
Status: Merged
Merged: 7/5/2025
Merged by: @dhiltgen

Base: mainHead: perf_tests


📝 Commits (1)

  • 1abe9c6 int: add performance integration tests

📊 Changes

4 files changed (+124771 additions, -31 deletions)

View changed files

📝 integration/model_arch_test.go (+7 -31)
integration/model_perf_test.go (+266 -0)
integration/testdata/shakespeare.txt (+124456 -0)
📝 integration/utils_test.go (+42 -0)

📄 Description

This adds a new set of integration tests that will exercise a broad set of models, across various context sizes (4k, 8k, 16k, max for the model) with short and long prompts, to see how they perform. The results are logged in CSV format for easy extraction.

usage example:

go test --tags=integration,perf -count 1 ./integration -v -timeout 1h -run TestModelsPerf 2>&1 | tee int.log
cat int.log | grep MODEL_PERF_HEADER | cut -f2- -d: > perf.csv
cat int.log | grep MODEL_PERF_DATA | cut -f2- -d: >> perf.csv

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11173 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 7/5/2025 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `perf_tests` --- ### 📝 Commits (1) - [`1abe9c6`](https://github.com/ollama/ollama/commit/1abe9c6c348bdf4c5ec9f8253f9d01894f959804) int: add performance integration tests ### 📊 Changes **4 files changed** (+124771 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `integration/model_arch_test.go` (+7 -31) ➕ `integration/model_perf_test.go` (+266 -0) ➕ `integration/testdata/shakespeare.txt` (+124456 -0) 📝 `integration/utils_test.go` (+42 -0) </details> ### 📄 Description This adds a new set of integration tests that will exercise a broad set of models, across various context sizes (4k, 8k, 16k, max for the model) with short and long prompts, to see how they perform. The results are logged in CSV format for easy extraction. usage example: ``` go test --tags=integration,perf -count 1 ./integration -v -timeout 1h -run TestModelsPerf 2>&1 | tee int.log cat int.log | grep MODEL_PERF_HEADER | cut -f2- -d: > perf.csv cat int.log | grep MODEL_PERF_DATA | cut -f2- -d: >> perf.csv ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 08:10:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#75757