@blazediff/bin 2.0.0 → 2.0.1
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/README.md +3 -4
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,11 +177,10 @@ Options:
|
|
|
177
177
|
|
|
178
178
|
Benchmarked on Apple M1 Pro with 5600x3200 4K images:
|
|
179
179
|
|
|
180
|
-
| Tool | Time | vs blazediff |
|
|
180
|
+
| Tool | Benchmark Time | vs blazediff |
|
|
181
181
|
|------|------|--------------|
|
|
182
|
-
| **blazediff** | ~
|
|
183
|
-
| odiff | ~
|
|
184
|
-
| pixelmatch | ~280ms | 8x slower |
|
|
182
|
+
| **blazediff** | ~327ms | - |
|
|
183
|
+
| odiff | ~1215ms | 3.4x slower |
|
|
185
184
|
|
|
186
185
|
Binary sizes (stripped, LTO optimized) - **~3x smaller than odiff**:
|
|
187
186
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.6.0_postcss@8.5.6_tsx@4.20.6_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
+
var getDirname = () => path.dirname(getFilename());
|
|
6
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
+
|
|
1
8
|
// src/index.ts
|
|
2
9
|
import { execFile } from "child_process";
|
|
3
|
-
import
|
|
10
|
+
import path2 from "path";
|
|
4
11
|
import { promisify } from "util";
|
|
5
12
|
var execFileAsync = promisify(execFile);
|
|
6
|
-
var BINARY_PATH =
|
|
13
|
+
var BINARY_PATH = path2.join(__dirname, "..", "bin", "blazediff.exe");
|
|
7
14
|
function buildArgs(diffOutput, options) {
|
|
8
15
|
const args = [diffOutput, "--output-format=json"];
|
|
9
16
|
if (!options) return args;
|