Test name | Executions per second |
---|---|
parseInt a number | 8307793.0 Ops/sec |
parseInt a string | 4880278.0 Ops/sec |
toString a number | 4289824.0 Ops/sec |
toString a string | 46454740.0 Ops/sec |
string literal a number | 4005672.0 Ops/sec |
string literal a string | 27418280.0 Ops/sec |
add empty string to number | 6320041.0 Ops/sec |
add empty string to string | 46722710.0 Ops/sec |