mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 09:17:22 +00:00
10 lines
341 B
JavaScript
10 lines
341 B
JavaScript
import os from 'node:os'
|
|
|
|
const hostCpu = os.cpus()[0].model.trim()
|
|
const targetCpu = await fetch('https://raw.githubusercontent.com/discordeno/discordeno/benchies/cpu')
|
|
.then((res) => res.text())
|
|
.then((text) => text.slice(0, -1))
|
|
console.dir(`host cpu: ${hostCpu} target cpu: ${targetCpu}`)
|
|
|
|
if (hostCpu !== targetCpu) process.exit(1)
|