Skip to content

Commit

Permalink
feat: print cpu status (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind authored May 30, 2024
1 parent 0192f64 commit 65a37f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ if (!command || command === "build") {
}

if (!command || command === "bench") {
if (isGitHubActions) {
await $`lscpu -e=CPU,MHZ`;
await $`echo "CPU Usage: "$[100-$(vmstat 1 2|tail -1|awk '{print $15}')]"%"`;
}

const shardPair = shard.split("/").map(t => parseInt(t, 10));
const [currentIndex, totalShards] = shardPair;

Expand Down

0 comments on commit 65a37f8

Please sign in to comment.