chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:01:57 +08:00
commit 9dda3e2451
399 changed files with 118131 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bun
/**
* Fast rebuild: reuse existing VM, just transfer source and recompile.
* Usage: bun run scripts/benchmark/rebuild.ts
*/
import { vmEnsureReady, vmBuildRtk } from "./lib/vm";
const PROJECT_ROOT = new URL("../../", import.meta.url).pathname.replace(/\/$/, "");
await vmEnsureReady();
const info = await vmBuildRtk(PROJECT_ROOT);
console.log(`\nRebuild complete:`);
console.log(` Version: ${info.version}`);
console.log(` Binary: ${info.binarySize} bytes`);
console.log(` Time: ${info.buildTime}s`);