nairon-bench 0.0.22 → 0.0.23
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/dist/index.js +49 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16010,7 +16010,8 @@ var dashboardCommand = defineCommand2({
|
|
|
16010
16010
|
return sparkChars[idx] ?? " ";
|
|
16011
16011
|
}).join("");
|
|
16012
16012
|
consola.log(` ${spark}`);
|
|
16013
|
-
|
|
16013
|
+
const dashWidth = Math.max(0, spark.length - 8);
|
|
16014
|
+
consola.log(` ${String(minScore).padStart(3)} ${"─".repeat(dashWidth)} ${String(maxScore).padStart(3)}`);
|
|
16014
16015
|
const first2 = scores[0];
|
|
16015
16016
|
const last2 = scores[scores.length - 1];
|
|
16016
16017
|
const delta = last2 - first2;
|
|
@@ -17698,9 +17699,55 @@ function formatBytes(bytes) {
|
|
|
17698
17699
|
const i3 = Math.floor(Math.log(bytes) / Math.log(k2));
|
|
17699
17700
|
return `${parseFloat((bytes / Math.pow(k2, i3)).toFixed(1))} ${sizes[i3]}`;
|
|
17700
17701
|
}
|
|
17702
|
+
// package.json
|
|
17703
|
+
var package_default = {
|
|
17704
|
+
name: "nairon-bench",
|
|
17705
|
+
version: "0.0.23",
|
|
17706
|
+
description: "AI workflow benchmarking CLI",
|
|
17707
|
+
type: "module",
|
|
17708
|
+
bin: {
|
|
17709
|
+
"nairon-bench": "./dist/index.js",
|
|
17710
|
+
nb: "./dist/index.js"
|
|
17711
|
+
},
|
|
17712
|
+
files: [
|
|
17713
|
+
"dist"
|
|
17714
|
+
],
|
|
17715
|
+
repository: {
|
|
17716
|
+
type: "git",
|
|
17717
|
+
url: "https://github.com/ObaidUr-Rahmaan/nairon-bench"
|
|
17718
|
+
},
|
|
17719
|
+
keywords: [
|
|
17720
|
+
"ai",
|
|
17721
|
+
"benchmark",
|
|
17722
|
+
"cli",
|
|
17723
|
+
"workflow"
|
|
17724
|
+
],
|
|
17725
|
+
license: "MIT",
|
|
17726
|
+
scripts: {
|
|
17727
|
+
dev: "bun run src/index.ts",
|
|
17728
|
+
build: "bun build --outdir=dist --target=node src/index.ts && sed -i.bak '1s|#!/usr/bin/env bun|#!/usr/bin/env node|' dist/index.js && rm -f dist/index.js.bak",
|
|
17729
|
+
"build:binary": "bun build --compile --outfile=dist/nb src/index.ts",
|
|
17730
|
+
"build:all": "bun run build:macos-arm64 && bun run build:macos-x64 && bun run build:linux-x64 && bun run build:linux-arm64 && bun run build:windows-x64",
|
|
17731
|
+
"build:macos-arm64": "bun build --compile --target=bun-darwin-arm64 --outfile=dist/nb-darwin-arm64 src/index.ts",
|
|
17732
|
+
"build:macos-x64": "bun build --compile --target=bun-darwin-x64 --outfile=dist/nb-darwin-x64 src/index.ts",
|
|
17733
|
+
"build:linux-x64": "bun build --compile --target=bun-linux-x64 --outfile=dist/nb-linux-x64 src/index.ts",
|
|
17734
|
+
"build:linux-arm64": "bun build --compile --target=bun-linux-arm64 --outfile=dist/nb-linux-arm64 src/index.ts",
|
|
17735
|
+
"build:windows-x64": "bun build --compile --target=bun-windows-x64 --outfile=dist/nb-windows-x64.exe src/index.ts",
|
|
17736
|
+
typecheck: "tsc --noEmit",
|
|
17737
|
+
test: "bun test",
|
|
17738
|
+
"test:e2e": "bun test --test-name-pattern e2e",
|
|
17739
|
+
clean: "rm -rf dist",
|
|
17740
|
+
prepublishOnly: "bun run build"
|
|
17741
|
+
},
|
|
17742
|
+
dependencies: {
|
|
17743
|
+
"cli-boxes": "^4.0.1",
|
|
17744
|
+
ora: "^9.3.0",
|
|
17745
|
+
picocolors: "^1.1.1"
|
|
17746
|
+
}
|
|
17747
|
+
};
|
|
17701
17748
|
|
|
17702
17749
|
// src/index.ts
|
|
17703
|
-
var VERSION =
|
|
17750
|
+
var VERSION = package_default.version;
|
|
17704
17751
|
var CYAN = "\x1B[36m";
|
|
17705
17752
|
var YELLOW = "\x1B[33m";
|
|
17706
17753
|
var DIM = "\x1B[2m";
|