Skip to content

Commit

Permalink
CtrlC in bench
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Apr 16, 2024
1 parent 8c4db42 commit 24b8348
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deno/lib/benchmarks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ if (!argv.length) {
for (const suite of suites) {
suite.run();
}

// exit on Ctrl-C
process.on("SIGINT", function () {
console.log("Exiting...");
process.exit();
});
6 changes: 6 additions & 0 deletions src/benchmarks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ if (!argv.length) {
for (const suite of suites) {
suite.run();
}

// exit on Ctrl-C
process.on("SIGINT", function () {
console.log("Exiting...");
process.exit();
});

0 comments on commit 24b8348

Please sign in to comment.