3 ms·
Are there any JITs for JS that end up exposing SIMD instructions on the host processor? Without that, and combined with the fact that JITs still don't necessari
by jerf 16y ago
Are there any JITs for JS that end up exposing SIMD instructions on the host processor? Without that, and combined with the fact that JITs still don't necessarily get to C speed even on simple math on raw floats/integers, you're going to take a stiff performance penalty for this, even on the latest JS VMs. User will still be paying for their electricity but will be doing a vanishing fraction of the work... rather than being a great idea it would actually sort of hostile to even offer this option.
NaCl, maybe. Google isn't helping me figure out if it can do SIMD instructions.
- corysama 16y agoI'd really rather use NaCl. And, I think SIMD is in the plan for NaCl, eventually... But, you might be a bit surprised by the raw float performance of the latest JS VMs. Running this benchmark, http://stepheneb.github.com/webgl-matrix-benchmarks/matrix_benchmark.html http://stepheneb.github.com/webgl-matrix-benchmarks/matrix_b... on my 3.4Ghz AMD in FF4, CanvasMatrix can multiply 20,000 pairs of 4x4 matrices in 1.5 ms. That's about 1.5 double-precision gigaflops on 1 core. 4 webworkers would give 6 gigaflops. That's low compared to the 50 gigaflops that native, pure-cpu-burn benchmarks get on that processor (when overclocked to 3.6 Ghz) http://www.overclock.net/amd-cpus/499526-official-phenom-ii-x4-9x5-oc.html http://www.overclock.net/amd-cpus/499526-official-phenom-ii-... but it's not terrible.