Tests:
-
const within function
-
const outside function
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121 on Windows
View result in a separate tab
const outside function
97K/s
const within function
96K/s
View exact numbers
| Test name |
Executions per second |
|
✓
const outside function
|
96,929 Ops/sec |
|
const within function
|
96,278 Ops/sec |
Do you really want to delete benchmark?