var first = 5;
//By using a bitwise
//operator, we make sure
//that the value is 32-bit integer
var second = first | 0;
// Unsigned int array
var arr = new Uint32Array([21,31]);
console.log(arr[1]); // 31
// Float 32 bit array
var arr = new Float32Array([21,31]);
console.log(arr[1]); // 31
16 out of 24 have a slowdown below 2x
No tests are more than 3x slower than C
Lavamd is 4x faster than C
Slowdowns are 1.62 and 1.35 for JS and asm.js, respectively
Only one asm.js benchmark has a slowdown higher than 2x
In 4 tests, at least one JS benchmark outperforms C
Slowdowns are 1.65 and 1.17 for JS and asm.js, respectively
Worse performance than other browsers
crc is 35x slower than C
Average slowdown is 3.11 and 2.18 for JS and asm.js in IE
Suggests a performance optimization missed by Safari's JIT compiler
Average slowdown is 2.69 and 2.15 for JS and asm.js, respectively
crc and fft have a severe penalty in JS at 17x and 10x
Speed up about 2x on average
back-prop speedup is over 16x
Multiple speed ups over greater than 4x
fft is slower.
Overall, speedups are similar across browsers
Comparing Parallelization performance boosts using OpenCL and WebCL