Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
7 months ago
Test name Executions per second
long eval() 4587144.5 Ops/sec
long parseInt() 4765408.5 Ops/sec
short eval() 4667687.0 Ops/sec
short parseInt() 9848480.0 Ops/sec
short Number class call 10173250.0 Ops/sec
long Number class call 10012018.0 Ops/sec
short JSON.parse 7126111.5 Ops/sec
long JSON.parse 3561025.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