parseInt or double negation

Benchmark created on


Description

Check if faster to process is parseInt or double negation: ex. parseInt(10.5) or ~~(10.5)

Test runner

Ready to run.

Testing in
TestOps/sec
parseInt positive
parseInt(12230.534355423354535)
ready
tilda positive
~~ (12230.534355423354535)
ready
parseInt negative
parseInt(-12230.534355423354535)
ready
tilda negative
~~ (-12230.534355423354535)
ready

Revisions

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