Skip to content

Commit a5d4da2

Browse files
committed
fix: remove git head generation
You can use bench-it outside of a git repository
1 parent 548745e commit a5d4da2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bench-it.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ if (process.argv.length < 3) {
1313
const BINARY = process.argv[2];
1414

1515
if (process.argv[3] === "baseline") {
16-
const baseline = execSync('git rev-parse HEAD').toString().trim();
1716
const result = execSync(`${BINARY} ${NODEJS_PACKAGE_BENCHMARK_PATH}/index.js`, {
1817
env: { TTY: true },
1918
}).toString();
20-
fs.writeFileSync('baseline.out', `${baseline}\n${result}`);
19+
fs.writeFileSync('baseline.out', `${result}`);
2120
console.log("Baseline generated.");
2221
process.exit(0);
2322
}

0 commit comments

Comments
 (0)