ollama-bench 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idx/dev.nix +21 -0
- package/README.md +6 -6
- package/package.json +2 -2
package/.idx/dev.nix
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{ pkgs }: {
|
|
2
|
+
channel = "unstable";
|
|
3
|
+
packages =
|
|
4
|
+
let
|
|
5
|
+
bunLatest = builtins.fetchurl {
|
|
6
|
+
url = "https://github.com/oven-sh/bun/releases/download/canary/bun-linux-x64.zip";
|
|
7
|
+
};
|
|
8
|
+
in
|
|
9
|
+
[
|
|
10
|
+
pkgs.nodejs_23
|
|
11
|
+
(pkgs.bun.overrideAttrs (oldAttrs: {
|
|
12
|
+
version = "canary";
|
|
13
|
+
src = bunLatest;
|
|
14
|
+
}))
|
|
15
|
+
];
|
|
16
|
+
idx.extensions = [
|
|
17
|
+
"biomejs.biome"
|
|
18
|
+
"BeardedBear.beardedicons"
|
|
19
|
+
"BeardedBear.beardedtheme"
|
|
20
|
+
];
|
|
21
|
+
}
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Ollama
|
|
2
|
-
A command-line tool to benchmark and compare the performance of Ollama language models. Measures tokens per second
|
|
1
|
+
# Ollama-bench
|
|
2
|
+
A command-line tool to benchmark and compare the performance of Ollama language models. Measures tokens per second and total processing time.
|
|
3
3
|
|
|
4
4
|
## Setup
|
|
5
5
|
|
|
@@ -30,20 +30,20 @@ For Windows users, you can also run Ollama from the system tray after installati
|
|
|
30
30
|
### 3. Install Benchmark Tool
|
|
31
31
|
Install globally:
|
|
32
32
|
```bash
|
|
33
|
-
npm install -g ollama-
|
|
33
|
+
npm install -g ollama-bench
|
|
34
34
|
```
|
|
35
35
|
Or run directly with npx:
|
|
36
36
|
```bash
|
|
37
|
-
npx ollama-
|
|
37
|
+
npx ollama-bench <model1> [model2] [model3]
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Usage
|
|
41
41
|
```bash
|
|
42
42
|
# Using global installation
|
|
43
|
-
ollama-
|
|
43
|
+
ollama-bench smollm:135m qwen2.5:0.5b
|
|
44
44
|
|
|
45
45
|
# Using npx (no installation required)
|
|
46
|
-
npx ollama-
|
|
46
|
+
npx ollama-bench smollm:135m qwen2.5:0.5b
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## Troubleshooting
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ollama-bench",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A CLI tool to benchmark Ollama models performance",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"ollama-
|
|
8
|
+
"ollama-bench": "./dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|