-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbenchmarks.js
More file actions
37 lines (32 loc) · 869 Bytes
/
benchmarks.js
File metadata and controls
37 lines (32 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// @ts-check
import { exec } from "child_process";
import throughput from "./benchmark_throughput.js";
function gitCommitAndPush(message) {
exec(`git commit -am "${message}"`, (error, stdout, stderr) => {
if (error) {
console.error(`Error during commit: ${error.message}`);
return;
}
if (stderr) {
console.error(`Stderr during commit: ${stderr}`);
return;
}
exec("git push", (error, stdout, stderr) => {
if (error) {
console.error(`Error during push: ${error.message}`);
return;
}
if (stderr) {
console.error(`Stderr during push: ${stderr}`);
return;
}
console.log("Commit and push successful");
});
});
}
async function run() {
await throughput.run();
// gitCommitAndPush("Update benchmarks");
}
console.info("Starting benchmarking...");
run();