Number parsing test

Benchmark created on


Setup

const num = "100"

Test runner

Ready to run.

Testing in
TestOps/sec
ParseInt()
const a = parseInt(num)
ready
Unary Plus
const a = +num
ready
Number
const a = Number(num)
ready
parseFloat()
const a = parseFloat(num)
ready
num | 0
const a = num | 0
ready
Right shift
const a = num >> 0
ready
Unsigned right shift
const a = num >>> 0
ready
Tilde
const a = ~~num
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.