4 ms·
navigator.hardwareConcurrency
by debugish 10y ago
navigator.hardwareConcurrency
- Klathmon 10y agoand if that's not supported but web workers are, you can guess that information pretty damn accurately by doing work in an increasing number of threads and looking for where you stop seeing little-to-no slowdown.