isNaN vs isFinite vs !==

Benchmark created on


Setup

this.input = 10.8

Test runner

Ready to run.

Testing in
TestOps/sec
Math.round
Math.round(this.input)
ready
Math.floor
Math.floor(this.input)
ready
Math.ceil
Math.ceil(this.input)
ready

Revisions

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