new const vs reassigning let vs reassigning var

This will evaluate the difference between assigning 2 constants or, creating 1 variable and reassigning it later on.
3 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.38 Safari/537.36
Test name Executions per second
New consts 16.2 Ops/sec
Reassign lets 16.3 Ops/sec
Reassign vars 15.9 Ops/sec
Tests:
  • New consts

  • Reassign lets

  • Reassign vars

Open this result on MeasureThat.net