3 ms·
Using Ray distributed would be a better stress test. Computing primes this way probably isn't the best way to saturate cores. You are spending a lot of time doi
by kortex 6y ago
Using Ray distributed would be a better stress test. Computing primes this way probably isn't the best way to saturate cores. You are spending a lot of time doing python vm operations vs pure number crunching.
Using numeric arrays chunked into blocks of number ranges would be more efficient (and therefore "crunchier")
https://ray.io/ https://ray.io/
- cashewchoo 6y agoIf they're thinking pure CPU benchmarking, prime95/mprime has several options, such as: [this is from my recollection] * completely in-register only, no caches. they warn an organic workload will never ever do this and not to do it if you're not confident in your cooling * somewhat more normal math-heavy workloads that don't do any IO but also do access the caches like a normal person * etc The python benchmark might be fair, though? I wouldn't be surprised if the ARM chip on the pi is like, fast, but then when it came to doing something more holistic - like a bunch of python vm operations - something about the mac is more robust than the pi in a significant way.