mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 01:07:22 +00:00
8 lines
301 B
JavaScript
8 lines
301 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())
|
|
console.dir(`host cpu: ${hostCpu} target cpu: ${targetCpu}`)
|
|
|
|
if (hostCpu !== targetCpu) process.exit(1)
|