Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Windows
Desktop
9 months ago
Test name Executions per second
long eval() 10040240.0 Ops/sec
long parseInt() 8862506.0 Ops/sec
short eval() 10167449.0 Ops/sec
short parseInt() 20555928.0 Ops/sec
short Number class call 20737564.0 Ops/sec
long Number class call 20706444.0 Ops/sec
short JSON.parse 12131946.0 Ops/sec
long JSON.parse 5826906.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