Tests:
-
generateRandomString1
-
Math.floor(Math.random() * 9000000000) + 1000000000
-
Math.floor(Math.random() * 1000000000)
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Math.floor(Math.random() * 9000000000) + 1000000000
87.3M/s
Math.floor(Math.random() * 1000000000)
86.4M/s
generateRandomString1
7.1M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Math.floor(Math.random() * 9000000000) + 1000000000
|
87,343,368 Ops/sec |
|
Math.floor(Math.random() * 1000000000)
|
86,376,784 Ops/sec |
|
generateRandomString1
|
7,116,735 Ops/sec |
Do you really want to delete benchmark?