Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Mac OS X 10.15.7
Desktop
8 months ago
Test name Executions per second
long eval() 8021460.0 Ops/sec
long parseInt() 7451337.5 Ops/sec
short eval() 8068790.5 Ops/sec
short parseInt() 17130306.0 Ops/sec
short Number class call 17042350.0 Ops/sec
long Number class call 16987990.0 Ops/sec
short JSON.parse 8949249.0 Ops/sec
long JSON.parse 4336558.0 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


;