Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36
Chrome Mobile 112
Android
Mobile
one year ago
Test name Executions per second
long eval() 2669495.2 Ops/sec
long parseInt() 3162229.8 Ops/sec
short eval() 2679816.5 Ops/sec
short parseInt() 7201316.0 Ops/sec
short Number class call 7218547.0 Ops/sec
long Number class call 7236072.5 Ops/sec
short JSON.parse 3591159.0 Ops/sec
long JSON.parse 2203574.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