Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
long eval() 2846853.0 Ops/sec
long parseInt() 2945925.0 Ops/sec
short eval() 2995472.0 Ops/sec
short parseInt() 5760676.0 Ops/sec
short Number class call 5756627.5 Ops/sec
long Number class call 4731493.5 Ops/sec
short JSON.parse 1977510.5 Ops/sec
long JSON.parse 1037310.9 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