https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/hardwareConcurrency
WorkerNavigator: hardwareConcurrency property - Web APIs | MDN
The navigator.hardwareConcurrency read-only property returns the number of logical processors available to run threads on the user's computer.
web apispropertymdn