diff --git a/benchmark/src/ttft.ts b/benchmark/src/ttft.ts index 707db0fe24b927..be14d0b4559991 100755 --- a/benchmark/src/ttft.ts +++ b/benchmark/src/ttft.ts @@ -17,13 +17,13 @@ if (fs.existsSync(profileName)) { process.exit(1); } -// cp.execSync(`${TURBO_BIN} --version`, { stdio: "inherit" }); +cp.execSync(`${TURBO_BIN} --version`, { stdio: "inherit" }); setup(); -// if (!fs.existsSync(TURBO_BIN)) { -// throw new Error("No turbo binary found"); -// } +if (!fs.existsSync(TURBO_BIN)) { + throw new Error("No turbo binary found"); +} const turboOpts = `-vvv --experimental-rust-codepath --dry --skip-infer --profile=${profileName}`; @@ -35,8 +35,7 @@ console.log("Executing turbo build in child process", { }); // When this script runs, cwd is benchmark/large-monorepo (i.e. REPO_PATH) -// const cmd = `${TURBO_BIN} run build ${turboOpts}`; -const cmd = `cp ../profile.json ${profileName}`; +const cmd = `${TURBO_BIN} run build ${turboOpts}`; try { cp.execSync(cmd, DEFAULT_EXEC_OPTS); } catch (e) {