Tests:
-
Bitwise complement
-
Bitwise shift
-
Math.trunc()
-
Math.round()
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one month ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
Chrome 151 on Linux
View result in a separate tab
View exact numbers
| Test name |
Executions per second |
|
✓
Math.trunc()
|
4,119 Ops/sec |
|
Bitwise complement
|
2,632 Ops/sec |
|
Bitwise shift
|
2,320 Ops/sec |
|
Math.round()
|
931 Ops/sec |
Do you really want to delete benchmark?