Tests:
  • String

    AخA
     
    var test = (new Date().getTime() + '').substring(0,6);
  • Int

     
    var test = parseInt(new Date().getTime() / 10000000, 10);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    String
    Int

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53 on Windows
View result in a separate tab
Test name Executions per second
String 459381.0 Ops/sec
Int 424408.4 Ops/sec