Tests:
-
BigInt.toString()
-
BigInt while shift
-
Number.toString()
-
Number while shift
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one month ago)
Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Linux
View result in a separate tab
Number while shift
1324.6M/s
BigInt while shift
1322.8M/s
Number.toString()
452.5M/s
BigInt.toString()
70.2M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Number while shift
|
1,324,618,496 Ops/sec |
|
BigInt while shift
|
1,322,807,808 Ops/sec |
|
Number.toString()
|
452,488,672 Ops/sec |
|
BigInt.toString()
|
70,164,008 Ops/sec |
Do you really want to delete benchmark?