Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Windows
Desktop
2 years ago
Test name Executions per second
long eval() 2948927.0 Ops/sec
long parseInt() 3734389.8 Ops/sec
short eval() 2978763.8 Ops/sec
short parseInt() 7445853.5 Ops/sec
short Number class call 7961026.0 Ops/sec
long Number class call 7661410.5 Ops/sec
short JSON.parse 4535311.0 Ops/sec
long JSON.parse 2481753.8 Ops/sec
Tests:
  • long eval()

  • long parseInt()

  • short eval()

  • short parseInt()

  • short Number class call

  • long Number class call

  • short JSON.parse

  • long JSON.parse


;