3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 06:35:44 +01:00

Answer stability round 1: 0 🔴, 4 🟡 (0 misread); kill the minify and boundary mutants, derive the comparison's esbuild pin, measure the companion sizes

This commit is contained in:
2026-11-15 13:45:04 +01:00
committed by Lillem4n
parent 6b7a8e691b
commit 750331e825
5 changed files with 49 additions and 18 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { resolve } from "node:path";
import { drift, minifiedGzippedBytes, packedBytes } from "./figures.mjs";
const root = resolve(import.meta.dirname, "..");
const measured = { minified: await minifiedGzippedBytes(root, "./dist/index.js"), ...packedBytes(root) };
const measured = { minified: await minifiedGzippedBytes(root, ["./dist/index.js"]), ...packedBytes(root) };
console.log(`${(measured.minified / 1000).toFixed(1)} kB minified and gzipped; ${(measured.tarball / 1000).toFixed(1)} kB tarball, ${(measured.unpacked / 1000).toFixed(1)} kB unpacked`);
if (process.argv.includes("--check")) {
const problems = drift(readFileSync(resolve(root, "README.md"), "utf8"), measured);