Test name | Executions per second |
---|---|
pow | 6819876.5 Ops/sec |
** | 12881229.0 Ops/sec |
* | 12853953.0 Ops/sec |
var result = 0
var tmp = Math.pow(6, 21);
result ^= tmp;
var tmp = 6 ** 21;
result ^= tmp;
var tmp = 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6;
result ^= tmp;