create account

RE: The Exponentiation Operator in JavaScript by ghasemkiani

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @ariak/re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z

· @ghasemkiani ·
Good question. Probably there is a better performance, because the method call is removed.
properties (22)
authorghasemkiani
permlinkre-ariak-re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z-20171020t132458206z
categorytechnology
json_metadata{"tags":[],"app":"juya/app","format":"markdown"}
created2017-10-20 13:24:57
last_update2017-10-20 13:24:57
depth2
children2
last_payout2017-10-27 13:24:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length90
author_reputation90,438,911,242,538
root_title"The Exponentiation Operator in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,136,131
net_rshares0
@ghasemkiani ·
So, I ran a benchmark and turns out `**` is almost three times faster than `Math.pow` on NodeJS.
properties (22)
authorghasemkiani
permlinkre-ghasemkiani-re-ariak-re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z-20171020t132458206z-20171020t173203268z
categorytechnology
json_metadata{"tags":[],"app":"juya/app","format":"markdown"}
created2017-10-20 17:32:15
last_update2017-10-20 17:32:15
depth3
children1
last_payout2017-10-27 17:32:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length96
author_reputation90,438,911,242,538
root_title"The Exponentiation Operator in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,148,464
net_rshares0
@ariak ·
$2.73
That's a very nice performance boost. It surely is an improvement.
👍  
properties (23)
authorariak
permlinkre-ghasemkiani-re-ghasemkiani-re-ariak-re-ghasemkiani-the-exponentiation-operator-in-javascript-20171020t132143583z-20171020t132458206z-20171020t173203268z-20171020t173335237z
categorytechnology
json_metadata{"tags":[],"app":"juya/app","format":"markdown"}
created2017-10-20 17:33:39
last_update2017-10-20 17:33:39
depth4
children0
last_payout2017-10-27 17:33:39
cashout_time1969-12-31 23:59:59
total_payout_value2.719 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length66
author_reputation951,896,451,809
root_title"The Exponentiation Operator in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,148,569
net_rshares1,197,938,011,521
author_curate_reward""
vote details (1)