Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.random()
    random()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52 on Windows XP
View result in a separate tab
Math.random()
185.7M/s
random()
10.6M/s
View exact numbers
Test name Executions per second
Math.random() 185,686,592 Ops/sec
random() 10,589,471 Ops/sec