Test name | Executions per second |
---|---|
trunc | 3857105.2 Ops/sec |
round | 3845987.2 Ops/sec |
floor | 3858572.5 Ops/sec |
parseFloat to int | 11734.7 Ops/sec |
~~ | 3888677.5 Ops/sec |
|0 | 3912829.8 Ops/sec |
parseInt | 3732859.0 Ops/sec |
parseInt, 10 | 3873018.2 Ops/sec |