Viewing a response to: @ariak/re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z
Good question. Probably there is a better performance, because the method call is removed.
author | ghasemkiani |
---|---|
permlink | re-ariak-re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z-20171020t132458206z |
category | technology |
json_metadata | {"tags":[],"app":"juya/app","format":"markdown"} |
created | 2017-10-20 13:24:57 |
last_update | 2017-10-20 13:24:57 |
depth | 2 |
children | 2 |
last_payout | 2017-10-27 13:24:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 90 |
author_reputation | 90,438,911,242,538 |
root_title | "The Exponentiation Operator in JavaScript" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 18,136,131 |
net_rshares | 0 |
So, I ran a benchmark and turns out `**` is almost three times faster than `Math.pow` on NodeJS.
author | ghasemkiani |
---|---|
permlink | re-ghasemkiani-re-ariak-re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z-20171020t132458206z-20171020t173203268z |
category | technology |
json_metadata | {"tags":[],"app":"juya/app","format":"markdown"} |
created | 2017-10-20 17:32:15 |
last_update | 2017-10-20 17:32:15 |
depth | 3 |
children | 1 |
last_payout | 2017-10-27 17:32:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 96 |
author_reputation | 90,438,911,242,538 |
root_title | "The Exponentiation Operator in JavaScript" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 18,148,464 |
net_rshares | 0 |
That's a very nice performance boost. It surely is an improvement.
author | ariak |
---|---|
permlink | re-ghasemkiani-re-ghasemkiani-re-ariak-re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z-20171020t132458206z-20171020t173203268z-20171020t173335237z |
category | technology |
json_metadata | {"tags":[],"app":"juya/app","format":"markdown"} |
created | 2017-10-20 17:33:39 |
last_update | 2017-10-20 17:33:39 |
depth | 4 |
children | 0 |
last_payout | 2017-10-27 17:33:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.719 HBD |
curator_payout_value | 0.012 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 66 |
author_reputation | 951,896,451,809 |
root_title | "The Exponentiation Operator in JavaScript" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 18,148,569 |
net_rshares | 1,197,938,011,521 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ghasemkiani | 0 | 1,197,938,011,521 | 100% |