[PR #12964] [MERGED] tests: basic benchmarking test framework #14014

Closed
opened 2026-04-13 00:42:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12964
Author: @pdevine
Created: 11/5/2025
Status: Merged
Merged: 11/16/2025
Merged by: @pdevine

Base: mainHead: pdevine/bench


📝 Commits (4)

📊 Changes

3 files changed (+886 additions, -0 deletions)

View changed files

cmd/bench/README.md (+114 -0)
cmd/bench/bench.go (+309 -0)
cmd/bench/bench_test.go (+463 -0)

📄 Description

This change adds a basic benchmarking test framework for Ollama which can be used to determine the prefill, eval, load duration, and total duration for running a given model or models.


🔄 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/12964 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 11/5/2025 **Status:** ✅ Merged **Merged:** 11/16/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/bench` --- ### 📝 Commits (4) - [`25769e3`](https://github.com/ollama/ollama/commit/25769e35a019f88055fb466f67cc9200d299c758) tests: basic benchmarking test framework - [`6669ecd`](https://github.com/ollama/ollama/commit/6669ecd99a501f3738d9a121b4d2c87f2af5be36) fix tests - [`ddc4a39`](https://github.com/ollama/ollama/commit/ddc4a393867ee742f7cf434ba8a3e4ef28fb37c0) feed the linter - [`804da5a`](https://github.com/ollama/ollama/commit/804da5ad3d42eeeb7f0986fd4e11150db99a5ca6) comments ### 📊 Changes **3 files changed** (+886 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `cmd/bench/README.md` (+114 -0) ➕ `cmd/bench/bench.go` (+309 -0) ➕ `cmd/bench/bench_test.go` (+463 -0) </details> ### 📄 Description This change adds a basic benchmarking test framework for Ollama which can be used to determine the prefill, eval, load duration, and total duration for running a given model or models. --- <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-04-13 00:42:36 -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#14014