parseInt with & w/o radix

Benchmark created on


Setup

const valid = "12345";
const invalid = "hello"

Test runner

Ready to run.

Testing in
TestOps/sec
valid with radix
parseInt(valid, 10)
ready
valid without radix
parseInt(valid)
ready
invalid with radix
parseInt(invalid, 10)
ready
invalid without radix
parseInt(invalid)
ready

Revisions

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