-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathos-testing.js
More file actions
96 lines (94 loc) · 2.16 KB
/
os-testing.js
File metadata and controls
96 lines (94 loc) · 2.16 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
const os = require("os");
console.log("💻 System Information:");
console.log(`OS Type: ${os.type()}`);
console.log(`Platform: ${os.platform()}`);
console.log(`Architecture: ${os.arch()}`);
console.log(`Total Memory: ${os.totalmem() / (1024 * 1024)} MB`);
console.log(`Free Memory: ${os.freemem() / (1024 * 1024)} MB`);
console.log(`Uptime: ${os.uptime()} seconds`);
console.log(`Host Name: ${os.hostname()}`);
console.log(`Home Directory: ${os.homedir()}`);
console.log("CPU Info:", os.cpus());
/*
💻 System Information:
OS Type: Windows_NT
Platform: win32
Architecture: x64
Total Memory: 7932.69921875 MB
Free Memory: 1473.9765625 MB
Uptime: 146614.546 seconds
Host Name: DESKTOP-PK42N06
Home Directory: C:\Users\ASUS
CPU Info: [
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: {
user: 3735265,
nice: 0,
sys: 3380890,
idle: 42416531,
irq: 513812
}
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: {
user: 3418546,
nice: 0,
sys: 2252000,
idle: 43862093,
irq: 226359
}
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: {
user: 4744437,
nice: 0,
sys: 2828718,
idle: 41959484,
irq: 273140
}
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: {
user: 3949281,
nice: 0,
sys: 2269296,
idle: 43314062,
irq: 194703
}
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: {
user: 2027640,
nice: 0,
sys: 1166156,
idle: 46338843,
irq: 114687
}
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: { user: 1299890, nice: 0, sys: 653312, idle: 47579437, irq: 61406 }
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: { user: 1684421, nice: 0, sys: 904156, idle: 46944062, irq: 97875 }
},
{
model: 'Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz',
speed: 1190,
times: { user: 1300500, nice: 0, sys: 618828, idle: 47613312, irq: 60500 }
}
]
*/