News for hackers. Stuff that matters.
Re:CPU core estimation with JavaScript by Drakim on Friday May 24, 2013 @07:12AM (#5762123)
There are usually a lot of random stuff happening on the average user's machine. Could an anti-virus scan start in the middle of this test and fudge up the result?
Re:CPU core estimation with JavaScript by eboyjr on Friday May 24, 2013 @07:24AM (#5762137)
Yeah. There are a lot of outside influences that can affect the results of the estimation. Unfortunately this is the only way to go until browsers vendors adopt navigator.cores. Future versions will be able to cope better with this by taking advantage of localStorage on the user's machine and averaging it out.
Re:CPU core estimation with JavaScript by cliffbean on Friday May 24, 2013 @10:38AM (#5763052)
In the long run, an API like navigator.cores is not what we actually want. How do you count cores in a world of SMT, shared caches, shared memory, and unrelated processes? Ideally, we want a higher-level API which allows the underlying system to dynamically adjust the level of parallelism.