Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed Oct 19, 2023
1 parent a4241fb commit b55741e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions benchmark/src/ttft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;

Expand All @@ -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) {
Expand Down

0 comments on commit b55741e

Please sign in to comment.