Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
long eval() 71107.2 Ops/sec
long parseInt() 5696037.0 Ops/sec
short eval() 73159.6 Ops/sec
short parseInt() 13670840.0 Ops/sec
Number class call 14676051.0 Ops/sec
Number class call long 14480890.0 Ops/sec
Tests:
  • long eval()

  • long parseInt()

  • short eval()

  • short parseInt()

  • Number class call

  • Number class call long