Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
garaetjjte
· 10y ago · 0 comments
How it knows how many cores CPU have?
Comments
[–]
SCdF
10y ago
Note that it's how many threads, not cores. I have a this CPU:
http://ark.intel.com/products/84985/Intel-Core-i5-5257U-Proc...
which the websites believes is 4 cores when really it's 2.
[–]
bpicolo
10y ago
It's logical cores vs physical cores.
[–]
debugish
10y ago
navigator.hardwareConcurrency
[–]
Klathmon
10y ago
and 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.