Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
Chrome 102
Linux
Desktop
2 years ago
Test name Executions per second
long eval() 1387838.9 Ops/sec
long parseInt() 1701013.8 Ops/sec
short eval() 1532261.8 Ops/sec
short parseInt() 3765411.8 Ops/sec
short Number class call 3551403.0 Ops/sec
long Number class call 3543864.0 Ops/sec
short JSON.parse 2320398.8 Ops/sec
long JSON.parse 1185239.2 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


;