Skip to content

Commit 99e953c

Browse files
committed
feat: print more machine info
1 parent 867c1de commit 99e953c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

bin/cli.js

+17-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,23 @@ if (!command || command === "build") {
111111

112112
if (!command || command === "bench") {
113113
if (isGitHubActions) {
114-
await $`lscpu -e=CPU,MHZ`;
115-
await $`echo "CPU Usage: "$[100-$(vmstat 1 2|tail -1|awk '{print $15}')]"%"`;
114+
await $`echo "===== System Information ====="`;
115+
await $`uname -a`;
116+
await $`cat /etc/os-release`;
117+
await $`uname -r`;
118+
await $`uptime`;
119+
120+
await $`echo "===== Resource Usage ====="`;
121+
await $`top -b -n1 | head -n10`;
122+
await $`vmstat`;
123+
await $`df -h`;
124+
await $`free -h`;
125+
126+
await $`echo "===== Hardware Information ====="`;
127+
await $`lscpu`;
128+
await $`lsblk`;
129+
await $`lspci`;
130+
await $`lsusb`;
116131
}
117132

118133
const shardPair = shard.split("/").map(t => parseInt(t, 10));

0 commit comments

Comments
 (0)