Test name | Executions per second |
---|---|
pow | 3782669.2 Ops/sec |
** | 8688158.0 Ops/sec |
* | 8683320.0 Ops/sec |
pow, new variable | 7525721.5 Ops/sec |
**, new variable | 866893248.0 Ops/sec |
*, new variable | 865183104.0 Ops/sec |
var tmp;
tmp = Math.pow(6, 21);
tmp = 6 ** 21;
tmp = 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6;
var tmp2 = Math.pow(6, 21);
var tmp2 = 6 ** 21;
var tmp2 = 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6 * 6;